Fix compile when SNMPv3 is disabled

This commit is contained in:
Dirk Ziegelmeier
2017-03-01 20:23:55 +01:00
parent 78cdbff1b3
commit 4ef21e2597
5 changed files with 7 additions and 6 deletions

View File

@@ -351,14 +351,12 @@ struct snmp_statistics
u32_t outsetrequests;
u32_t outgetresponses;
u32_t outtraps;
#if LWIP_SNMP_V3
u32_t unsupportedseclevels;
u32_t notintimewindows;
u32_t unknownusernames;
u32_t unknownengineids;
u32_t wrongdigests;
u32_t decryptionerrors;
#endif
};
extern struct snmp_statistics snmp_stats;

View File

@@ -279,7 +279,7 @@
* THIS IS UNDER DEVELOPMENT AND SHOULD NOT BE ENABLED IN PRODUCTS.
*/
#ifndef LWIP_SNMP_V3
#define LWIP_SNMP_V3 1
#define LWIP_SNMP_V3 0
#endif
#ifndef LWIP_SNMP_V3_MBEDTLS