Ipv6RoutingHeader

Namespace: inet

class Ipv6RoutingHeader

Routing Header RFC 2460 Section 4.4 Next Header Value: 43

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

Ipv6ExtensionHeader

class

This serves as the base class for all the Ipv6 extension headers.

Fields

Name

Type

Description

id

int

mutable

bool

complete

bool

correct

bool

properlyRepresented

bool

chunkLength

b

rawBin

string[]

rawHex

string[]

regionTags

SharingRegionTagSet::TagBaseRegionTag[]

extensionType

IpProtocolId

nextHeaderProtocol

IpProtocolId

Next Header field (on the wire)

extensionType

chunkLength

chunkLength = 8+16*getAddressArraySize() when routingType == 0

routingType

uint8_t

segmentsLeft

uint8_t

address

Ipv6Address[]

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// Routing Header
// RFC 2460 Section 4.4
// Next Header Value: 43
//
class Ipv6RoutingHeader extends Ipv6ExtensionHeader
{
    extensionType = IP_PROT_IPv6EXT_ROUTING;
    chunkLength = B(8);
    //chunkLength = 8+16*getAddressArraySize() when routingType == 0
    uint8_t routingType;
    uint8_t segmentsLeft;
    Ipv6Address address[];
}

File: src/inet/networklayer/ipv6/Ipv6ExtensionHeaders.msg