arphdr Struct Reference

#include <libc/netinet/arp.h>

struct arphdr

Detailed Description

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.

Member Attribute Documentation

ar_hln

u_char ar_hln

ar_hrd

u_short ar_hrd

ar_op

u_short ar_op

ar_pln

u_char ar_pln

ar_pro

u_short ar_pro