Rrep

Namespace inet::aodv

Rrep

class

Represents an AODV Route Reply

Extends

Name Type Description
AodvControlPacket (unknown -- not in documented files)

Fields

Name Type Description
repairFlag bool

chunkLength = B(20) or B(44) packetType = RREP or RREP_IPv6

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.

Packet operations (observed)

actionmodule
PacketAodv

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