32 #ifndef __LWIP_ICMP_H__ 33 #define __LWIP_ICMP_H__ 74 #ifdef PACK_STRUCT_USE_INCLUDES 75 # include "arch/bpstruct.h" 101 #ifdef PACK_STRUCT_USE_INCLUDES 102 # include "arch/epstruct.h" 105 #define ICMPH_TYPE(hdr) (ntohs((hdr)->_type_code) >> 8) 106 #define ICMPH_CODE(hdr) (ntohs((hdr)->_type_code) & 0xff) 108 #define ICMPH_TYPE_SET(hdr, type) ((hdr)->_type_code = htons(ICMPH_CODE(hdr) | ((type) << 8))) 109 #define ICMPH_CODE_SET(hdr, code) ((hdr)->_type_code = htons((code) | (ICMPH_TYPE(hdr) << 8)))
static u32_t chksum(void *dataptr, u16_t len)
Definition: inet6.c:59
icmp_dur_type
Definition: icmp.h:55
#define PACK_STRUCT_BEGIN
Definition: arch.h:46
GLdouble GLdouble t
Definition: glext.h:6398
PACK_STRUCT_FIELD(u16_t _type_code)
PACK_STRUCT_FIELD(u16_t _type_code)
GLfloat GLfloat p
Definition: glext.h:9809
#define PACK_STRUCT_END
Definition: arch.h:50
PACK_STRUCT_FIELD(u16_t _type_code)
void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t)
Definition: icmp.c:128
u32 u32_t
Definition: cc.h:47
icmp_te_type
Definition: icmp.h:64
void icmp_input(struct pbuf *p, struct netif *inp)
Definition: icmp.c:47
PACK_STRUCT_BEGIN struct icmp_echo_hdr PACK_STRUCT_STRUCT
void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t)
u16 u16_t
Definition: cc.h:45