mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-15 04:36:53 +08:00
Made accepted SNMP version runtime configurable.
This feature can be disabled by setting LWIP_SNMP_CONFIGURE_VERSIONS to 0.
This commit is contained in:
@@ -106,6 +106,13 @@ err_t snmp_send_trap(const struct snmp_obj_id* oid, s32_t generic_trap, s32_t sp
|
||||
void snmp_set_auth_traps_enabled(u8_t enable);
|
||||
u8_t snmp_get_auth_traps_enabled(void);
|
||||
|
||||
u8_t snmp_v1_enabled(void);
|
||||
u8_t snmp_v2c_enabled(void);
|
||||
u8_t snmp_v3_enabled(void);
|
||||
void snmp_v1_enable(u8_t enable);
|
||||
void snmp_v2c_enable(u8_t enable);
|
||||
void snmp_v3_enable(u8_t enable);
|
||||
|
||||
const char * snmp_get_community(void);
|
||||
const char * snmp_get_community_write(void);
|
||||
const char * snmp_get_community_trap(void);
|
||||
|
||||
@@ -279,15 +279,19 @@
|
||||
* THIS IS UNDER DEVELOPMENT AND SHOULD NOT BE ENABLED IN PRODUCTS.
|
||||
*/
|
||||
#ifndef LWIP_SNMP_V3
|
||||
#define LWIP_SNMP_V3 0
|
||||
#endif
|
||||
|
||||
#ifndef LWIP_SNMP_V3_CRYPTO
|
||||
#define LWIP_SNMP_V3_CRYPTO LWIP_SNMP_V3
|
||||
#define LWIP_SNMP_V3 1
|
||||
#endif
|
||||
|
||||
#ifndef LWIP_SNMP_V3_MBEDTLS
|
||||
#define LWIP_SNMP_V3_MBEDTLS LWIP_SNMP_V3
|
||||
#endif
|
||||
|
||||
#ifndef LWIP_SNMP_V3_CRYPTO
|
||||
#define LWIP_SNMP_V3_CRYPTO LWIP_SNMP_V3_MBEDTLS
|
||||
#endif
|
||||
|
||||
#ifndef LWIP_SNMP_CONFIGURE_VERSIONS
|
||||
#define LWIP_SNMP_CONFIGURE_VERSIONS 0
|
||||
#endif
|
||||
|
||||
#endif /* LWIP_HDR_SNMP_OPTS_H */
|
||||
|
||||
Reference in New Issue
Block a user