diff --git a/components/net/Kconfig b/components/net/Kconfig index fca7d107f19afe7b75dce6fe8020420f2ad722ce..ac7a063eddbafd5f8aaad3db0f01cc16f0767a3e 100644 --- a/components/net/Kconfig +++ b/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 diff --git a/components/net/lwip-2.0.2/src/lwipopts.h b/components/net/lwip-2.0.2/src/lwipopts.h index 364682cba2128e331e57a2e20bd3051212c714bb..07901c3fa1850221605356e4cad44b0650dca546 100644 --- a/components/net/lwip-2.0.2/src/lwipopts.h +++ b/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 ---------- */