Go to the documentation of this file. 56 #ifndef LWIP_HDR_ICMP_H 57 #define LWIP_HDR_ICMP_H 65 #if LWIP_IPV6 && LWIP_ICMP6 97 #if LWIP_IPV4 && LWIP_ICMP 99 void icmp_input(
struct pbuf *p,
struct netif *inp);
105 #if LWIP_IPV4 && LWIP_IPV6 106 #if LWIP_ICMP && LWIP_ICMP6 107 #define icmp_port_unreach(isipv6, pbuf) ((isipv6) ? \ 108 icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT) : \ 109 icmp_dest_unreach(pbuf, ICMP_DUR_PORT)) 111 #define icmp_port_unreach(isipv6, pbuf) do{ if(!(isipv6)) { icmp_dest_unreach(pbuf, ICMP_DUR_PORT);}}while(0) 113 #define icmp_port_unreach(isipv6, pbuf) do{ if(isipv6) { icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT);}}while(0) 115 #define icmp_port_unreach(isipv6, pbuf) 117 #elif LWIP_IPV6 && LWIP_ICMP6 118 #define icmp_port_unreach(isipv6, pbuf) icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT) 119 #elif LWIP_IPV4 && LWIP_ICMP 120 #define icmp_port_unreach(isipv6, pbuf) icmp_dest_unreach(pbuf, ICMP_DUR_PORT) 122 #define icmp_port_unreach(isipv6, pbuf)