32 #ifndef __LWIP_ICMP_H__
33 #define __LWIP_ICMP_H__
36 #include "lwip/pbuf.h"
37 #include "lwip/ip_addr.h"
38 #include "lwip/netif.h"
70 #ifdef PACK_STRUCT_USE_INCLUDES
71 # include "arch/bpstruct.h"
90 #ifdef PACK_STRUCT_USE_INCLUDES
91 # include "arch/epstruct.h"
95 #define ICMPH_TYPE(hdr) ((hdr)->type)
96 #define ICMPH_CODE(hdr) ((hdr)->code)
99 #define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t))
100 #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c))
105 void icmp_input(
struct pbuf *p,
struct netif *inp)ICACHE_FLASH_ATTR;
106 void icmp_dest_unreach(
struct pbuf *p,
enum icmp_dur_type t)ICACHE_FLASH_ATTR;
107 void icmp_time_exceeded(
struct pbuf *p,
enum icmp_te_type t)ICACHE_FLASH_ATTR;
PACK_STRUCT_FIELD(u8_t type)