Difference between revisions of "Unit IPv6"
From Ultibo.org
Line 10: | Line 10: | ||
---- | ---- | ||
− | '' | + | |
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''IPv6 specific constants''' <code> IP6_TRANSPORT_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>IP6_TRANSPORT_NAME = 'IPV6';</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''IP6 constants''' <code> IP6_HEADER_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>MIN_IP6_PACKET = 40;</code> | ||
+ | | Not Counting Adapter Header | ||
+ | |- | ||
+ | | <code>MAX_IP6_PACKET = 1500;</code> | ||
+ | | Not Counting Adapter Header | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>MAX_FRAG_LIFE = 32000;</code> | ||
+ | | Only wait 32 seconds for the rest of the packet | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>IP6_HEADER_SIZE = 40;</code> | ||
+ | | SizeOf(TIP6Header); Does Not Allow for Extensions | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''IP6 extension header constants''' <code> IP6_HEADER_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|See: https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>IP6_HEADER_HOP = 0;</code> | ||
+ | | Hop-by-hop option header | ||
+ | |- | ||
+ | | <code>IP6_HEADER_TCP = 6;</code> | ||
+ | | Next header is a TCP segment (The payload) | ||
+ | |- | ||
+ | | <code>IP6_HEADER_UDP = 17;</code> | ||
+ | | Next header is a UDP message (The payload) | ||
+ | |- | ||
+ | | <code>IP6_HEADER_IPV6 = 41;</code> | ||
+ | | Next header is a IPv6 packet (IPv6 Encapsulation) (The payload) | ||
+ | |- | ||
+ | | <code>IP6_HEADER_ROUTING = 43;</code> | ||
+ | | Next header is a Routing header | ||
+ | |- | ||
+ | | <code>IP6_HEADER_FRAGMENT = 44;</code> | ||
+ | | Next header is a Fragmentation/reassembly header | ||
+ | |- | ||
+ | | <code>IP6_HEADER_GRE = 47;</code> | ||
+ | | Next header is a GRE header | ||
+ | |- | ||
+ | | <code>IP6_HEADER_ESP = 50;</code> | ||
+ | | Next header is a Encapsulating security payload | ||
+ | |- | ||
+ | | <code>IP6_HEADER_AUTH = 51;</code> | ||
+ | | Next header is a Authentication header | ||
+ | |- | ||
+ | | <code>IP6_HEADER_ICMP = 58;</code> | ||
+ | | Next header is a ICMP for IPv6 message | ||
+ | |- | ||
+ | | <code>IP6_HEADER_NONE = 59;</code> | ||
+ | | There is no next header (Do not process payload) | ||
+ | |- | ||
+ | | <code>IP6_HEADER_DEST = 60;</code> | ||
+ | | Next header is a Destination options header | ||
+ | |- | ||
+ | | <code>IP6_HEADER_SCTP = 132;</code> | ||
+ | | Next header is a SCTP message (The payload) | ||
+ | |- | ||
+ | | <code>IP6_HEADER_MOBILITY = 135;</code> | ||
+ | | Next header is a Mobility header | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>IP6_MTU = MAX_IP6_PACKET;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
=== Type definitions === | === Type definitions === |
Revision as of 03:45, 13 December 2016
Return to Unit Reference
Description
To be documented
Constants
IPv6 specific constants
IP6_TRANSPORT_*
IP6_TRANSPORT_NAME = 'IPV6';
|
IP6 constants
IP6_HEADER_*
MIN_IP6_PACKET = 40;
|
Not Counting Adapter Header |
MAX_IP6_PACKET = 1500;
|
Not Counting Adapter Header |
MAX_FRAG_LIFE = 32000;
|
Only wait 32 seconds for the rest of the packet |
IP6_HEADER_SIZE = 40;
|
SizeOf(TIP6Header); Does Not Allow for Extensions |
IP6 extension header constants
IP6_HEADER_*
See: https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers | |
IP6_HEADER_HOP = 0;
|
Hop-by-hop option header |
IP6_HEADER_TCP = 6;
|
Next header is a TCP segment (The payload) |
IP6_HEADER_UDP = 17;
|
Next header is a UDP message (The payload) |
IP6_HEADER_IPV6 = 41;
|
Next header is a IPv6 packet (IPv6 Encapsulation) (The payload) |
IP6_HEADER_ROUTING = 43;
|
Next header is a Routing header |
IP6_HEADER_FRAGMENT = 44;
|
Next header is a Fragmentation/reassembly header |
IP6_HEADER_GRE = 47;
|
Next header is a GRE header |
IP6_HEADER_ESP = 50;
|
Next header is a Encapsulating security payload |
IP6_HEADER_AUTH = 51;
|
Next header is a Authentication header |
IP6_HEADER_ICMP = 58;
|
Next header is a ICMP for IPv6 message |
IP6_HEADER_NONE = 59;
|
There is no next header (Do not process payload) |
IP6_HEADER_DEST = 60;
|
Next header is a Destination options header |
IP6_HEADER_SCTP = 132;
|
Next header is a SCTP message (The payload) |
IP6_HEADER_MOBILITY = 135;
|
Next header is a Mobility header |
IP6_MTU = MAX_IP6_PACKET;
|
Type definitions
To be documented
Public variables
To be documented
Function declarations
Initialization functions
procedure IP6Init;
Description: To be documented
Note | None documented |
---|
IPv6 functions
function CheckIP6(ABuffer:Pointer):Boolean;
Description: Verify that the packet is a valid IP6 packet
Buffer | Complete packet without Adapter header |
---|
function GetIP6Protocol(ABuffer:Pointer):Byte;
Description: To be documented
Buffer | Complete packet including Transport header |
---|
function GetIP6HeaderOffset(ABuffer:Pointer):Word;
Description: Return Start of the IP6 Header (Start of Packet)
Buffer | Complete packet including Transport header |
---|
function GetIP6HeaderLength(ABuffer:Pointer):Word;
Description: Return Size of IP6 Header (Including Options)
Buffer | Complete packet including Transport header |
---|
function GetIP6DataOffset(ABuffer:Pointer):Word;
Description: Return Start of IP6 Packet Data (Length of IP6 Header)
Buffer | Complete packet including Transport header |
---|
function GetIP6DataLength(ABuffer:Pointer):Word;
Description: Return Size of IP6 Packet Data (IP6 TotalLength - IP6 Header)
Buffer | Complete packet including Transport header |
---|
function ChecksumIP6(ABuffer:Pointer; AOffset,ALength:Word):Word;
Description: Validate the IP6 Header and Options Checksum on Receive
Buffer | Complete packet including Transport header |
---|
Return to Unit Reference