浏览该文件的文档.
37#ifndef LWIP_HDR_ICMP_H
38#define LWIP_HDR_ICMP_H
46#if LWIP_IPV6 && LWIP_ICMP6
78#if LWIP_IPV4 && LWIP_ICMP
80void icmp_input(
struct pbuf *p,
struct netif *inp);
86#if LWIP_IPV4 && LWIP_IPV6
87#if LWIP_ICMP && LWIP_ICMP6
88#define icmp_port_unreach(isipv6, pbuf) ((isipv6) ? \
89 icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT) : \
90 icmp_dest_unreach(pbuf, ICMP_DUR_PORT))
92#define icmp_port_unreach(isipv6, pbuf) do{ if(!(isipv6)) { icmp_dest_unreach(pbuf, ICMP_DUR_PORT);}}while(0)
94#define icmp_port_unreach(isipv6, pbuf) do{ if(isipv6) { icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT);}}while(0)
96#define icmp_port_unreach(isipv6, pbuf)
98#elif LWIP_IPV6 && LWIP_ICMP6
99#define icmp_port_unreach(isipv6, pbuf) icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT)
100#elif LWIP_IPV4 && LWIP_ICMP
101#define icmp_port_unreach(isipv6, pbuf) icmp_dest_unreach(pbuf, ICMP_DUR_PORT)
103#define icmp_port_unreach(isipv6, pbuf)
icmp_te_type
Definition: icmp.h:71
@ ICMP_TE_FRAG
Definition: icmp.h:75
@ ICMP_TE_TTL
Definition: icmp.h:73
icmp_dur_type
Definition: icmp.h:55
@ ICMP_DUR_PROTO
Definition: icmp.h:61
@ ICMP_DUR_NET
Definition: icmp.h:57
@ ICMP_DUR_HOST
Definition: icmp.h:59
@ ICMP_DUR_FRAG
Definition: icmp.h:65
@ ICMP_DUR_PORT
Definition: icmp.h:63
@ ICMP_DUR_SR
Definition: icmp.h:67