diff --git a/src/include/ipv4/lwip/icmp.h b/src/include/ipv4/lwip/icmp.h index ff838f43..c73961c9 100644 --- a/src/include/ipv4/lwip/icmp.h +++ b/src/include/ipv4/lwip/icmp.h @@ -33,9 +33,6 @@ #define __LWIP_ICMP_H__ #include "lwip/opt.h" - -#if LWIP_ICMP /* don't build if not configured for use in lwipopts.h */ - #include "lwip/pbuf.h" #include "lwip/ip_addr.h" #include "lwip/netif.h" @@ -70,11 +67,6 @@ enum icmp_te_type { ICMP_TE_FRAG = 1 /* fragment reassembly time exceeded */ }; -void icmp_input(struct pbuf *p, struct netif *inp); - -void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t); -void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t); - #ifdef PACK_STRUCT_USE_INCLUDES # include "arch/bpstruct.h" #endif @@ -103,10 +95,17 @@ PACK_STRUCT_END #define ICMPH_TYPE_SET(hdr, t) ((hdr)->type = (t)) #define ICMPH_CODE_SET(hdr, c) ((hdr)->code = (c)) + +#if LWIP_ICMP /* don't build if not configured for use in lwipopts.h */ + +void icmp_input(struct pbuf *p, struct netif *inp); +void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t); +void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t); + +#endif /* LWIP_ICMP */ + #ifdef __cplusplus } #endif -#endif /* LWIP_ICMP */ - #endif /* __LWIP_ICMP_H__ */