56 #ifndef LWIP_HDR_PROT_ICMP_H 57 #define LWIP_HDR_PROT_ICMP_H 79 #ifdef PACK_STRUCT_USE_INCLUDES 80 # include "arch/bpstruct.h" 89 PACK_STRUCT_FLD_8(u8_t type);
90 PACK_STRUCT_FLD_8(u8_t code);
91 PACK_STRUCT_FIELD(u16_t chksum);
92 PACK_STRUCT_FIELD(u16_t
id);
93 PACK_STRUCT_FIELD(u16_t seqno);
96 #ifdef PACK_STRUCT_USE_INCLUDES 97 # include "arch/epstruct.h" 101 #define ICMPH_TYPE(hdr) ((hdr)->type) 102 #define ICMPH_CODE(hdr) ((hdr)->code) 103 #define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t)) 104 #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c))
#define PACK_STRUCT_BEGIN