Ipv6RoutingHeader

Ipv6RoutingHeader

class

C++ definition

Routing Header RFC 2460 Section 4.4 Next Header Value: 43

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
Ipv6ExtensionHeader class

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

Fields

Name Type Description
extensionType uint8_t
byteLength B

byteLength = n * 8;

routingType uint8_t

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

segmentsLeft uint8_t
address Ipv6Address[]

Source code

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

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