37 #ifndef LWIP_HDR_PROT_ETHARP_H
38 #define LWIP_HDR_PROT_ETHARP_H
47 #ifndef ETHARP_HWADDR_LEN
48 #define ETHARP_HWADDR_LEN ETH_HWADDR_LEN
55 #ifdef PACK_STRUCT_USE_INCLUDES
63 #ifdef PACK_STRUCT_USE_INCLUDES
70 #ifndef IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T
71 #define IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(dest, src) SMEMCPY(dest, src, sizeof(ip4_addr_t))
77 #ifndef IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T
78 #define IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(dest, src) SMEMCPY(dest, src, sizeof(ip4_addr_t))
81 #ifdef PACK_STRUCT_USE_INCLUDES
98 #ifdef PACK_STRUCT_USE_INCLUDES
102 #define SIZEOF_ETHARP_HDR 28
#define PACK_STRUCT_END
Definition: arch.h:316
uint8_t u8_t
Definition: arch.h:125
#define PACK_STRUCT_BEGIN
Definition: arch.h:307
uint16_t u16_t
Definition: arch.h:127
PACK_STRUCT_BEGIN struct ip4_addr_wordaligned PACK_STRUCT_STRUCT
etharp_opcode
Definition: etharp.h:105
@ ARP_REPLY
Definition: etharp.h:107
@ ARP_REQUEST
Definition: etharp.h:106
Definition: ethernet.h:60
PACK_STRUCT_FLD_8(u8_t hwlen)
PACK_STRUCT_FLD_8(u8_t protolen)
PACK_STRUCT_FLD_S(struct ip4_addr_wordaligned sipaddr)
PACK_STRUCT_FLD_S(struct eth_addr dhwaddr)
PACK_STRUCT_FLD_S(struct eth_addr shwaddr)
PACK_STRUCT_FIELD(u16_t opcode)
PACK_STRUCT_FIELD(u16_t proto)
PACK_STRUCT_FIELD(u16_t hwtype)
PACK_STRUCT_FLD_S(struct ip4_addr_wordaligned dipaddr)
PACK_STRUCT_FIELD(u16_t addrw[2])