Integrate "task #7272 : LWIP_ICMP option". The new option LWIP_ICMP enable/disable ICMP module inside the IP stack (enable per default). Be careful, disabling ICMP make your product non-compliant to RFC1122, but help to reduce footprint, and to reduce "visibility" on the Internet.

This commit is contained in:
fbernon
2007-09-05 17:20:45 +00:00
parent 90a3f88c08
commit ca866c0d7d
9 changed files with 44 additions and 10 deletions

View File

@@ -40,6 +40,8 @@
#include "lwip/ip_addr.h"
#include "lwip/netif.h"
#if LWIP_ICMP /* don't build if not configured for use in lwipopts.h */
#ifdef __cplusplus
extern "C" {
#endif
@@ -116,5 +118,6 @@ PACK_STRUCT_END
}
#endif
#endif /* LWIP_ICMP */
#endif /* __LWIP_ICMP_H__ */

View File

@@ -39,6 +39,8 @@
#include "lwip/netif.h"
#if LWIP_ICMP /* don't build if not configured for use in lwipopts.h */
#ifdef __cplusplus
extern "C" {
#endif
@@ -94,5 +96,7 @@ struct icmp_te_hdr {
}
#endif
#endif /* LWIP_ICMP */
#endif /* __LWIP_ICMP_H__ */

View File

@@ -403,6 +403,14 @@
---------- ICMP options ----------
----------------------------------
*/
/**
* LWIP_ICMP==1: Enable ICMP module inside the IP stack.
* Be careful, disable that make your product non-compliant to RFC1122
*/
#ifndef LWIP_ICMP
#define LWIP_ICMP 1
#endif
/**
* ICMP_TTL: Default value for Time-To-Live used by ICMP packets.
*/