Difference between revisions of "Unit ARP"
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;">'''ARP specific constants''' <code> ARP_TRANSPORT_*, RARP_TRANSPORT_* </code></div> | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;" | ||
| + | |- | ||
| + | | <code>ARP_TRANSPORT_NAME = 'ARP';</code> | ||
| + | | style="width: 50%;"|  | ||
| + | |- | ||
| + | | <code>RARP_TRANSPORT_NAME = 'RARP';</code> | ||
| + | |   | ||
| + | |- | ||
| + | |} | ||
| + | </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;">'''ARP and RARP constants''' <code> MIN_*, MAX_*, ARP_*, RARP_* </code></div> | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;" | ||
| + | |- | ||
| + | | <code>MIN_ARP_PACKET = 46;</code> | ||
| + | | Not Counting Adapter Header | ||
| + | |- | ||
| + | | <code>MAX_ARP_PACKET = 46;</code> | ||
| + | | Not Counting Adapter Header | ||
| + | |- | ||
| + | |colspan="2"|  | ||
| + | |-  | ||
| + | | <code>ARP_TIMEOUT = 1000;</code> | ||
| + | | We wait for 1 second approx for reply | ||
| + | |- | ||
| + | | <code>ARP_RETRIES = 4;</code> | ||
| + | | We try the request 4 times | ||
| + | |- | ||
| + | |colspan="2"|  | ||
| + | |-  | ||
| + | | <code>RARP_TIMEOUT = 4000;</code> | ||
| + | | We wait for 4 seconds for a RARP reply | ||
| + | |- | ||
| + | | <code>RARP_RETRIES = 4;</code> | ||
| + | | We try the request 4 times | ||
| + | |- | ||
| + | |colspan="2"|  | ||
| + | |-  | ||
| + | | <code>ARP_HEADER_SIZE  = 46;</code> | ||
| + | | SizeOf(TARPHeader); | ||
| + | |- | ||
| + | | <code>RARP_HEADER_SIZE = 46;</code> | ||
| + | | SizeOf(TRARPHeader); | ||
| + | |- | ||
| + | |} | ||
| + | </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;">'''ARP and RARP messages''' <code> ARP_*, RARP_*, INARP_* </code></div> | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;" | ||
| + | |- | ||
| + | | <code>ARP_REQUEST = $0001;</code> | ||
| + | | ARP/RARP op codes, Request | ||
| + | |- | ||
| + | | <code>ARP_REPLY = $0002;</code> | ||
| + | | ARP/RARP op codes, Reply | ||
| + | |- | ||
| + | | <code>RARP_REQUEST = $0003;</code> | ||
| + | |   | ||
| + | |- | ||
| + | | <code>RARP_REPLY = $0004;</code> | ||
| + | |   | ||
| + | |- | ||
| + | | <code>INARP_REQUEST = $0008;</code> | ||
| + | | Inverse ARP see RFC 1293 | ||
| + | |- | ||
| + | | <code>INARP_REPLY = $0009;</code> | ||
| + | |   | ||
| + | |- | ||
| + | |} | ||
| + | </div></div> | ||
| + | <br />  | ||
| === Type definitions === | === Type definitions === | ||
Revision as of 01:56, 24 November 2016
Return to Unit Reference
Description
To be documented
Constants
ARP specific constants 
 ARP_TRANSPORT_*, RARP_TRANSPORT_* | ARP_TRANSPORT_NAME = 'ARP'; | |
| RARP_TRANSPORT_NAME = 'RARP'; | 
  
ARP and RARP constants 
 MIN_*, MAX_*, ARP_*, RARP_* | MIN_ARP_PACKET = 46; | Not Counting Adapter Header | 
| MAX_ARP_PACKET = 46; | Not Counting Adapter Header | 
| ARP_TIMEOUT = 1000; | We wait for 1 second approx for reply | 
| ARP_RETRIES = 4; | We try the request 4 times | 
| RARP_TIMEOUT = 4000; | We wait for 4 seconds for a RARP reply | 
| RARP_RETRIES = 4; | We try the request 4 times | 
| ARP_HEADER_SIZE  = 46; | SizeOf(TARPHeader); | 
| RARP_HEADER_SIZE = 46; | SizeOf(TRARPHeader); | 
 
ARP and RARP messages 
 ARP_*, RARP_*, INARP_* | ARP_REQUEST = $0001; | ARP/RARP op codes, Request | 
| ARP_REPLY = $0002; | ARP/RARP op codes, Reply | 
| RARP_REQUEST = $0003; | |
| RARP_REPLY = $0004; | |
| INARP_REQUEST = $0008; | Inverse ARP see RFC 1293 | 
| INARP_REPLY = $0009; | 
 
Type definitions
To be documented
Public variables
To be documented
Function declarations
Initialization functions
procedure ARPInit;
Description: To be documented
| Note | None documented | 
|---|
ARP functions
function CheckARP(ABuffer:Pointer):Boolean;
Description: Verify that the packet is a valid ARP packet
| Buffer | Buffer points to the complete packet without Adapter header | 
|---|
function CheckRARP(ABuffer:Pointer):Boolean;
Description: Verify that the packet is a valid RARP packet
| Buffer | Buffer points to the complete packet without Adapter header | 
|---|
Return to Unit Reference

