From 1ea0ddb02512083e3982c30aa2cc82324ec165ec Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 7 Jun 2017 17:26:05 +1000 Subject: [PATCH] lwip: Expose broadcast/multicast ping enable options in menuconfig --- components/lwip/Kconfig | 12 ++++++++++++ components/lwip/include/lwip/port/lwipopts.h | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/components/lwip/Kconfig b/components/lwip/Kconfig index 06becb7f3..436d08393 100644 --- a/components/lwip/Kconfig +++ b/components/lwip/Kconfig @@ -139,4 +139,16 @@ config PPP_DEBUG_ON help Enable PPP debug log output +menu "ICMP" + +config LWIP_MULTICAST_PING + bool "Respond to multicast pings" + default n + +config LWIP_BROADCAST_PING + bool "Respond to broadcast pings" + default n + +endmenu # ICMP + endmenu diff --git a/components/lwip/include/lwip/port/lwipopts.h b/components/lwip/include/lwip/port/lwipopts.h index 3b8c5485c..10b0dd7c7 100644 --- a/components/lwip/include/lwip/port/lwipopts.h +++ b/components/lwip/include/lwip/port/lwipopts.h @@ -184,6 +184,10 @@ ---------------------------------- */ +#define LWIP_BROADCAST_PING CONFIG_LWIP_BROADCAST_PING + +#define LWIP_MULTICAST_PING CONFIG_LWIP_MULTICAST_PING + /* --------------------------------- ---------- RAW options ----------