7 #define UIP_ICMP_TTL 255 10 #define UIP_ICMP_DUR 3 13 #define UIP_ICMP_ECHO 8 14 #define UIP_ICMP_TE 11 15 #define UIP_ICMP_PP 12 16 #define UIP_ICMP_TS 13 17 #define UIP_ICMP_TSR 14 18 #define UIP_ICMP_IRQ 15 19 #define UIP_ICMP_IR 16 21 #define UIP_ICMPH_TYPE(hdr) (ntohs((hdr)->_type_code) >> 8) 22 #define UIP_ICMPH_CODE(hdr) (ntohs((hdr)->_type_code) & 0xff) 24 #define UIP_ICMPH_TYPE_SET(hdr, type) ((hdr)->_type_code = htons(UIP_ICMPH_CODE(hdr) | ((type) << 8))) 25 #define UIP_ICMPH_CODE_SET(hdr, code) ((hdr)->_type_code = htons((code) | (UIP_ICMPH_TYPE(hdr) << 8)))
static u32_t chksum(void *dataptr, u16_t len)
Definition: inet6.c:59
Definition: uip_icmp.h:30
Definition: uip_icmp.h:28
Definition: uip_icmp.h:46
#define PACK_STRUCT_BEGIN
Definition: arch.h:46
GLdouble GLdouble t
Definition: glext.h:6398
PACK_STRUCT_BEGIN struct uip_icmp_echo_hdr PACK_STRUCT_STRUCT
void uip_icmp_destunreach(struct uip_pbuf *p, enum uip_icmp_dur_type t)
Definition: uip_icmp.c:80
Definition: uip_pbuf.h:27
void uip_icmpinput(struct uip_pbuf *p, struct uip_netif *inp)
Definition: uip_icmp.c:23
uip_icmp_dur_type
Definition: uip_icmp.h:27
Definition: uip_icmp.h:37
Definition: uip_icmp.h:32
PACK_STRUCT_FIELD(u16_t _type_code)
Definition: uip_icmp.h:29
Definition: uip_icmp.h:31
GLfloat GLfloat p
Definition: glext.h:9809
#define PACK_STRUCT_END
Definition: arch.h:50
PACK_STRUCT_FIELD(u16_t _type_code)
Definition: uip_icmp.h:33
u32 u32_t
Definition: cc.h:47
Definition: uip_netif.h:29
u16 u16_t
Definition: cc.h:45