瀏覽代碼

Merge pull request #1660 from enkiller/dev

[lwip]修复开启SNMP选项编译会失败的问题
Bernard Xiong 6 年之前
父節點
當前提交
8eaf8de704
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      components/net/Kconfig
  2. 1 0
      components/net/lwip-2.0.2/src/lwipopts.h

+ 1 - 0
components/net/Kconfig

@@ -76,6 +76,7 @@ config RT_USING_LWIP
 
         config RT_LWIP_SNMP
             bool "SNMP protocol"
+            select RT_LWIP_STATS
             default n
 
         config RT_LWIP_DNS

+ 1 - 0
components/net/lwip-2.0.2/src/lwipopts.h

@@ -462,6 +462,7 @@
 #define MEMP_STATS                  1
 #define PBUF_STATS                  1
 #define SYS_STATS                   1
+#define MIB2_STATS                  1
 #endif /* LWIP_STATS */
 
 /* ---------- PPP options ---------- */