Ipv6Header
classIpv6 datagram. RFC 2460 Section 3.
Header fields not explicitly modelled:
- version (=6): represented by the class name itself
- payload length: will be calculated from encapsulated message length and extension headers' length
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 |
---|---|---|
NetworkHeaderBase | class | (no description) |
Fields
Name | Type | Description |
---|---|---|
chunkLength | b | |
srcAddress | Ipv6Address | |
destAddress | Ipv6Address | |
payloadLength | B |
The size of the payload in octets, including any extension headers. The length is set to zero when a Hop-by-Hop extension header carries a Jumbo Payload option. |
trafficClass | short |
@bits(8) Traffic Class OMNeT++ 6.0: short __dscp @custom @getter(getDscp) @setter(setDscp); // @bit(6), maps to bits 0-5 of trafficClass short __ecn @custom @getter(getEcn) @setter(setEcn); // @bit(2), maps to bits 6-7 of trafficClass |
flowLabel | unsigned int | |
hopLimit | short | |
protocolId | IpProtocolId | |
extensionHeader | Ipv6ExtensionHeader[] |
array of extension headers, subclassed from Ipv6ExtensionHeader |
sourceAddress | L3Address | |
destinationAddress | L3Address | |
protocol | Protocol | |
mutable | bool | |
complete | bool | |
correct | bool | |
properlyRepresented | bool | |
rawBin | string[] | |
rawHex | string[] | |
tags | RegionTagSet::cObjectRegionTag[] |
Source code
// // Ipv6 datagram. RFC 2460 Section 3. // // Header fields not explicitly modelled: // - version (=6): represented by the class name itself // - payload length: will be calculated from encapsulated message length // and extension headers' length // class Ipv6Header extends NetworkHeaderBase { chunkLength = IPv6_HEADER_BYTES; Ipv6Address srcAddress; Ipv6Address destAddress; B payloadLength = B(-1); // The size of the payload in octets, including any extension headers. The length is set to zero when a Hop-by-Hop extension header carries a Jumbo Payload option. short trafficClass; // @bits(8) Traffic Class // OMNeT++ 6.0: // short __dscp @custom @getter(getDscp) @setter(setDscp); // @bit(6), maps to bits 0-5 of trafficClass // short __ecn @custom @getter(getEcn) @setter(setEcn); // @bit(2), maps to bits 6-7 of trafficClass unsigned int flowLabel; short hopLimit = 0; IpProtocolId protocolId = IP_PROT_NONE; Ipv6ExtensionHeader *extensionHeader[] @owned; // array of extension headers, subclassed from ~Ipv6ExtensionHeader }File: src/inet/networklayer/ipv6/Ipv6Header.msg