Rrep

Namespace: inet::aodv

class Rrep

Represents an AODV Route Reply

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

AodvControlPacket

class

Base packet for AODV Control Packets

Fields

Name

Type

Description

id

int

mutable

bool

complete

bool

correct

bool

properlyRepresented

bool

chunkLength

b

rawBin

string[]

rawHex

string[]

regionTags

SharingRegionTagSet::TagBaseRegionTag[]

packetType

AodvControlPacketType

packet type, stored in one byte

repairFlag

bool

Repair flag; used for multicast.

ackRequiredFlag

bool

Acknowledgment required.

reserved

uint16_t

Sent as 0; ignored on reception.

prefixSize

unsigned int

If nonzero, the 5-bit Prefix Size specifies that the indicated next hop may be used for any nodes with the same routing prefix (as defined by the Prefix Size) as the requested destination.

hopCount

unsigned int

The number of hops from the Originator IP Address to the Destination IP Address. For multicast route requests this indicates the number of hops to the multicast tree member sending the RREP.

destAddr

L3Address

The IP address of the destination for which a route is supplied.

destSeqNum

uint32_t

The destination sequence number associated to the route.

originatorAddr

L3Address

The IP address of the node which originated the RREQ for which the route is supplied.

lifeTime

simtime_t

The time in milliseconds for which nodes receiving the RREP consider the route to be valid.

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// Represents an AODV Route Reply
//
class Rrep extends AodvControlPacket
{
    // chunkLength = B(20) or B(44)
    // packetType = RREP or RREP_IPv6
    bool repairFlag;    // Repair flag; used for multicast.
    bool ackRequiredFlag;    // Acknowledgment required.
    uint16_t reserved = 0;    // Sent as 0; ignored on reception.
    unsigned int prefixSize;    // If nonzero, the 5-bit Prefix Size specifies that the indicated next hop may be used for any nodes with the same routing prefix (as defined by the Prefix Size) as the requested destination.
    unsigned int hopCount;    // The number of hops from the Originator IP Address to the Destination IP Address.  For multicast route requests this indicates the number of hops to the multicast tree member sending the RREP.
    L3Address destAddr;    // The IP address of the destination for which a route is supplied.
    uint32_t destSeqNum;    // The destination sequence number associated to the route.
    L3Address originatorAddr;    // The IP address of the node which originated the RREQ for which the route is supplied.
    simtime_t lifeTime;     // The time in milliseconds for which nodes receiving the RREP consider the route to be valid.
}

File: src/inet/routing/aodv/AodvControlPackets.msg