Difference between revisions of "Unit ICMP"

From Ultibo.org
Jump to: navigation, search
Line 59: Line 59:
  
 
=== Type definitions ===
 
=== Type definitions ===
 +
----
 +
 +
''To be documented''
 +
 +
=== Class definitions ===
 
----
 
----
  

Revision as of 06:05, 19 January 2017

Return to Unit Reference


Description


Ultibo ICMP (Internet Control Message Protocol) unit

To be documented

Constants



ICMP specific constants ICMP_PROTOCOL_*
Note: Some ICMP definitions are in the Protocol or IP modules
 
ICMP_PROTOCOL_NAME = 'ICMP';  


ICMP constants ICMP_*
ICMP_TIMEOUT = 0; Wait forever on a ICMP Read
ICMP_BUFFER_SIZE = 65536; ICMP Receive Buffer Size
 
ICMP_HEADER_SIZE = 8; SizeOf(TICMPHeader); ICMP.Solicit
 
ICMP_PACKET_SIZE = 8; SizeOf(TICMPPacket)
 
ICMP_ROUTER_TIMEOUT = 60000;  


Type definitions


To be documented

Class definitions


To be documented

Public variables


None defined

Function declarations



Initialization functions

procedure ICMPInit;
Description: To be documented
Note None documented


ICMP functions

function CheckICMP(AFamily:Word; ABuffer:Pointer):Boolean;
Description: Verify that the packet is a valid ICMP packet
Buffer The complete packet including Transport header


function GetICMPHeaderOffset(AFamily:Word; ABuffer:Pointer):Word;
Description: To be documented
Buffer The complete packet including Transport header


function GetICMPHeaderLength(AFamily:Word; ABuffer:Pointer):Word;
Description: To be documented
Buffer The complete packet including Transport header


function GetICMPDataOffset(AFamily:Word; ABuffer:Pointer):Word;
Description: To be documented
Buffer The complete packet including Transport header


function GetICMPDataLength(AFamily:Word; ABuffer:Pointer):Word;
Description: To be documented
Buffer The complete packet including Transport header


function ChecksumICMP(AFamily:Word; ABuffer:Pointer; AOffset,ALength:Word):Word;
Description: Checksum the ICMP Header on Send / Validate the Checksum on Receive
Note None documented


Return to Unit Reference