Ipv6NdPrefixInformation

Ipv6NdPrefixInformation

class

IPv6ND Prefix Information RFC 2461 / RFC 4861 Section 4.6.2 RFC 3775 Section 7.2 (routerAddressFlag)

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
Ipv6NdOption class (no description)

Fields

Name Type Description
type Ipv6NdOptionTypes

1 byte, 0 is invalid

optionLength short

The length of the option in units of 8 octets, 0 is invalid. // 1 byte

prefixLength unsigned short

0..128

onlinkFlag bool

L-bit

autoAddressConfFlag bool

A-bit

routerAddressFlag bool

R-bit: used in case of MIPv6 when the H-bit is set

reserved1 unsigned int
validLifetime uint32_t

seconds

preferredLifetime uint32_t

seconds

reserved2 uint32_t
prefix Ipv6Address
paddingBytes char[]

padding bytes on end of option

Source code

//
// IPv6ND Prefix Information
// RFC 2461 / RFC 4861 Section 4.6.2
// RFC 3775 Section 7.2 (routerAddressFlag)
//
class Ipv6NdPrefixInformation extends Ipv6NdOption
{
    type = IPv6ND_PREFIX_INFORMATION;
    optionLength = 4;
    unsigned short prefixLength;    // 0..128
    bool onlinkFlag;        //L-bit
    bool autoAddressConfFlag;    //A-bit
    bool routerAddressFlag;        //R-bit: used in case of MIPv6 when the H-bit is set
    unsigned int reserved1 = 0;
    uint32_t validLifetime;    // seconds
    uint32_t preferredLifetime;    // seconds
    uint32_t reserved2 = 0;
    Ipv6Address prefix;
}

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