#include <net/if_arp.h>
net/if_arp.h
structarphdr
Address Resolution Protocol.
See RFC 826 for protocol description. ARP packets are variable
in size; the arphdr structure defines the fixed-length portion.
Protocol type values are the same as those for 10 Mb/s Ethernet.
It is followed by the variable-sized fields ar_sha, arp_spa,
arp_tha and arp_tpa in that order, according to the lengths
specified. Field names used correspond to RFC 826.
| u_short | ar_hrd | format of hardware address |
| u_short | ar_pro | format of protocol address |
| u_char | ar_hln | length of hardware address |
| u_char | ar_pln | length of protocol address |
| u_short | ar_op | one of: |
structarpreq
ARP ioctl request
| struct sockaddr | arp_pa | protocol address |
| struct sockaddr | arp_ha | hardware address |
| int | arp_flags | flags |
structarpstat
| uint32_t | txrequests | Normal things that happen: # of ARP requests sent by this host. |
| uint32_t | txreplies | # of ARP replies sent by this host. |
| uint32_t | txannounces | # of ARP announcements sent by this host. |
| uint32_t | rxrequests | # of ARP requests received by this host. |
| uint32_t | rxreplies | # of ARP replies received by this host. |
| uint32_t | received | # of ARP packets received by this host. |
| uint32_t | txconflicts | Abnormal event and error counting: # of ARP conflict probes sent |
| uint32_t | invalidreqs | # of invalid ARP resolve requests |
| uint32_t | reqnobufs | # of failed requests due to no memory |
| uint32_t | dropped | # of packets dropped waiting for a reply. |
| uint32_t | purged | # of packets purged while removing entries |
| uint32_t | timeouts | # of times with entries removed |
| uint32_t | dupips | due to timeout. # of duplicate IPs detected. |
| uint32_t | inuse | General statistics # of ARP entries in routing table |
| uint32_t | txurequests | # of ARP requests sent (unicast) |
| uint32_t | held | # of packets held waiting for a reply |