Ipv6FragmentHeader

Namespace: inet

class Ipv6FragmentHeader

Fragment Header RFC 2460 Section 4.5 Next Header Value: 44

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

fragmentOffset

uint16_t

@bit(13), divided by 8

reserved

uint8_t

@bit(2)

moreFragments

bool

Is this the last fragment?

identification

uint32_t

datagram ID: identifies which datagram this fragment belongs to.

Properties

Name

Value

Description

beforeChange

handleChange()

descriptor

readonly

existingClass

packetData

Source code

//
// Fragment Header
// RFC 2460 Section 4.5
// Next Header Value: 44
//
class Ipv6FragmentHeader extends Ipv6ExtensionHeader
{
    extensionType = IP_PROT_IPv6EXT_FRAGMENT;
    chunkLength = IPv6_FRAGMENT_HEADER_LENGTH;
    uint16_t fragmentOffset;    // @bit(13), divided by 8
    uint8_t reserved = 0;    // @bit(2)
    bool moreFragments; //Is this the last fragment?
    uint32_t identification;  // datagram ID: identifies which datagram this fragment belongs to.
}

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