1 /* arp.h - Address Resolution Protocol packet format.
11 ether_type_t ethtype
; /* ARP_PROTO. */
12 u16_t hdr
, pro
; /* ARP_ETHERNET & ETH_IP_PROTO. */
13 u8_t hln
, pln
; /* 6 & 4. */
14 u16_t op
; /* ARP_REQUEST or ARP_REPLY. */
15 ether_addr_t sha
; /* Source hardware address. */
16 u8_t spa
[4]; /* Source protocol address. */
17 ether_addr_t tha
; /* Likewise for the target. */
19 char padding
[60 - (4*6 + 2*4 + 4*2 + 2*1)];
22 #define ARP_ETHERNET 1 /* ARP on Ethernet. */
23 #define ARP_REQUEST 1 /* A request for an IP address. */
24 #define ARP_REPLY 2 /* A reply to a request. */