Difference between revisions of "Unit ARP"
From Ultibo.org
Line 95: | Line 95: | ||
---- | ---- | ||
− | '' | + | |
+ | '''ARP specific types''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARPHeader = ^TARPHeader;</code> | ||
+ | |||
+ | <code>TARPHeader = packed record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: 46 Bytes | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>HardwareType:Word;</code> | ||
+ | | Hardware address space (Network Order) | ||
+ | |- | ||
+ | | <code>ProtocolType:Word;</code> | ||
+ | | Protocol address space (Network Order) | ||
+ | |- | ||
+ | | <code>HardwareLength:Byte;</code> | ||
+ | | Byte length of hardware address | ||
+ | |- | ||
+ | | <code>ProtocolLength:Byte;</code> | ||
+ | | Byte length of each protocol address | ||
+ | |- | ||
+ | | <code>Opcode:Word;</code> | ||
+ | | Op code (eg ARP_REQUEST or ARP_REPLY) (Network Order) | ||
+ | |- | ||
+ | | <code>SourceHardware:THardwareAddress;</code> | ||
+ | | Source hardware address (of sender) | ||
+ | |- | ||
+ | | <code>SourceIP:TInAddr;</code> | ||
+ | | Source protocol address (of sender) (Network Order) | ||
+ | |- | ||
+ | | <code>TargetHardware:THardwareAddress;</code> | ||
+ | | Target hardware address (if known) | ||
+ | |- | ||
+ | | <code>TargetIP:TInAddr;</code> | ||
+ | | Target protocol address (Network Order) | ||
+ | |- | ||
+ | | <code>Reserved:array[0..17] of Word;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''RARP specific types''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PRARPHeader = ^TRARPHeader;</code> | ||
+ | |||
+ | <code>TRARPHeader = TARPHeader;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: 46 Bytes | ||
+ | |- | ||
+ | | | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
=== Public variables === | === Public variables === |
Revision as of 02:36, 17 January 2017
Return to Unit Reference
Contents
[hide]Description
Ultibo ARP (Address Resolution Protocol) unit
To be documented
Constants
[Expand]
ARP specific constants
ARP_TRANSPORT_*, RARP_TRANSPORT_*
[Expand]
ARP and RARP constants
MIN_*, MAX_*, ARP_*, RARP_*
[Expand]
ARP and RARP messages
ARP_*, RARP_*, INARP_*
Type definitions
ARP specific types
RARP specific types
Public variables
None defined
Function declarations
Initialization functions
ARP functions
[Expand]
function CheckARP(ABuffer:Pointer):Boolean;
Description: Verify that the packet is a valid ARP packet
[Expand]
function CheckRARP(ABuffer:Pointer):Boolean;
Description: Verify that the packet is a valid RARP packet
Return to Unit Reference