37 #ifndef LWIP_HDR_PROT_ICMP_H
38 #define LWIP_HDR_PROT_ICMP_H
60 #ifdef PACK_STRUCT_USE_INCLUDES
77 #ifdef PACK_STRUCT_USE_INCLUDES
82 #define ICMPH_TYPE(hdr) ((hdr)->type)
83 #define ICMPH_CODE(hdr) ((hdr)->code)
84 #define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t))
85 #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c))
#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 icmp_echo_hdr PACK_STRUCT_STRUCT
PACK_STRUCT_FLD_8(u8_t type)
PACK_STRUCT_FIELD(u16_t seqno)
PACK_STRUCT_FIELD(u16_t id)
PACK_STRUCT_FIELD(u16_t chksum)
PACK_STRUCT_FLD_8(u8_t code)