The namespace PoC.net.ipv6 offers an "Internet Protocol - Version 6" (IPv6) implementation.
The following ASCII art shows the basic structure of an IPv6 paket:
Endianess: big-endian
Alignment: 8 byte
Byte 0 Byte 1 Byte 2 Byte 3
+----------------+---------------+----------------+---------------+--------------------------------+--------------------------------+
| IPVers. (0x06) | TrafficClass | FlowLabel |
+----------------+---------------+----------------+---------------+--------------------------------+--------------------------------+
| PayloadLength | NextHeader | HopLimit |
+--------------------------------+--------------------------------+--------------------------------+--------------------------------+
| SourceAddress |
+ + + + +
| |
+ + + + +
| |
+ + + + +
| |
+--------------------------------+--------------------------------+--------------------------------+--------------------------------+
| DestinationAddress |
+ + + + +
| |
+ + + + +
| |
+ + + + +
| |
+--------------------------------+--------------------------------+--------------------------------+--------------------------------+
| ExtensionHeader(s) |
~ ~ ~ ~ ~
| |
~ ~ ~ ~ ~
| |
~ ~ ~ ~ ~
| |
+--------------------------------+--------------------------------+--------------------------------+--------------------------------+
| Payload |
~ ~ ~ ~ ~
| |
~ ~ ~ ~ ~
| |
~ ~ ~ ~ ~
| |
+--------------------------------+--------------------------------+--------------------------------+--------------------------------+