Ipv6NeighbourAdvertisement

Namespace: inet

class Ipv6NeighbourAdvertisement

Neighbour Advertisement Message Format RFC 2461 Section 4.4

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

Ipv6NdMessage

class

Neighbour Discovery for Ipv6. RFC 2461

Fields

Name

Type

Description

id

int

mutable

bool

complete

bool

correct

bool

properlyRepresented

bool

chunkLength

b

rawBin

string[]

rawHex

string[]

regionTags

SharingRegionTagSet::TagBaseRegionTag[]

chunkLength

type

Icmpv6Type

1 byte int code; // 1 byte //TODO this should be specific to different ICMP types.

chksum

int

2 bytes

checksumMode

ChecksumMode

4 bytes ‘type’ specific values

code

int

chunkLength

without options

type

Additional ICMP fields

routerFlag

bool

R-flag

solicitedFlag

bool

S-flag

overrideFlag

bool

O-flag

reserved

uint32_t

targetAddress

Ipv6Address

MUST NOT be a multicast address.

options

Ipv6NdOptions

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// Neighbour Advertisement Message Format
// RFC 2461 Section 4.4
//
class Ipv6NeighbourAdvertisement extends Ipv6NdMessage
{
    chunkLength = B(24);    // without options
    type = ICMPv6_NEIGHBOUR_AD;
    //Additional ICMP fields
    bool routerFlag;    //R-flag
    bool solicitedFlag;    //S-flag
    bool overrideFlag;    //O-flag
    uint32_t reserved = 0;
    Ipv6Address targetAddress;// MUST NOT be a multicast address.
    Ipv6NdOptions options;
}

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