Go to the documentation of this file.
   37 #ifndef LWIP_HDR_ICMP_H 
   38 #define LWIP_HDR_ICMP_H 
   46 #if LWIP_IPV6 && LWIP_ICMP6 
   78 #if LWIP_IPV4 && LWIP_ICMP  
   80 void 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)