15 #define ARPHRD_NETROM 0 16 #define ARPHRD_ETHER 1 17 #define ARPHRD_EETHER 2 19 #define ARPHRD_PRONET 4 20 #define ARPHRD_CHAOS 5 21 #define ARPHRD_IEEE802 6 22 #define ARPHRD_ARCNET 7 23 #define ARPHRD_APPLETLK 8 24 #define ARPHRD_DLCI 15 26 #define ARPHRD_METRICOM 23 27 #define ARPHRD_IEEE1394 24 28 #define ARPHRD_EUI64 27 29 #define ARPHRD_INFINIBAND 32 32 #define ARPOP_REQUEST 1 34 #define ARPOP_RREQUEST 3 35 #define ARPOP_RREPLY 4 36 #define ARPOP_InREQUEST 8 37 #define ARPOP_InREPLY 9 108 return (
sizeof ( *
arphdr ) +
static void * arp_sender_pa(struct arphdr *arphdr)
ARP packet sender protocol address.
static void * arp_target_ha(struct arphdr *arphdr)
ARP packet target hardware address.
static void * arp_target_pa(struct arphdr *arphdr)
ARP packet target protocol address.
uint8_t ar_hln
Link-layer address length.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint16_t ar_hrd
Link-layer protocol.
uint16_t ar_op
ARP opcode.
static void * arp_sender_ha(struct arphdr *arphdr)
ARP packet sender hardware address.
struct arphdr __attribute__((packed))
uint16_t ar_pro
Network-layer protocol.
uint8_t ar_pln
Network-layer address length.
static size_t arp_len(struct arphdr *arphdr)
ARP packet length.