Ipv6RouterAdvertisement

Namespace inet

Ipv6RouterAdvertisement

class

Router Advertisement Message Format RFC 2461 Section 4.2 RFC 3775 Section 7.1, RFC 5175 Section 3. (homeAgentFlag)

Extends

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

Fields

Name Type Description
chunkLength

without options

type
curHopLimit unsigned short

Additional ICMP fields

managedAddrConfFlag bool

M-bit

otherStatefulConfFlag bool

O-bit

homeAgentFlag bool

H-bit

reserved uint8_t
routerLifetime unsigned short

[s] 0 indicates router is not a default router

reachableTime unsigned int

[ms]

retransTimer unsigned int

[ms]

options Ipv6NdOptions

Packet operations (observed)

actionmodule
insertAtFrontIpv6NeighbourDiscovery

Source code

//
// Router Advertisement Message Format
// RFC 2461 Section 4.2
// RFC 3775 Section 7.1, RFC 5175 Section 3. (homeAgentFlag)
//
class Ipv6RouterAdvertisement extends Ipv6NdMessage
{
    chunkLength = B(16);    // without options
    type = ICMPv6_ROUTER_AD;
    //Additional ICMP fields
    unsigned short curHopLimit;

    bool managedAddrConfFlag;    //M-bit
    bool otherStatefulConfFlag;    //O-bit
    bool homeAgentFlag = false;        //H-bit
    uint8_t reserved = 0;

    unsigned short routerLifetime;  // [s] 0 indicates router is not a default router
    unsigned int reachableTime;     // [ms]
    unsigned int retransTimer;      // [ms]
    Ipv6NdOptions options;
}

File: src/inet/networklayer/icmpv6/Ipv6NdMessage.msg