소스 검색

lwip: Expose broadcast/multicast ping enable options in menuconfig

Angus Gratton 8 년 전
부모
커밋
1ea0ddb025
2개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      components/lwip/Kconfig
  2. 4 0
      components/lwip/include/lwip/port/lwipopts.h

+ 12 - 0
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

+ 4 - 0
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 ----------