From 064d1713321c5849c3cdb2d7c29cc9eda3fefa1a Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 2 Oct 2015 09:56:37 +0200 Subject: [PATCH] snmp: moved agent initialization from snmp_msg.h to snmp.h --- src/include/lwip/snmp.h | 5 +++++ src/include/lwip/snmp_msg.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/include/lwip/snmp.h b/src/include/lwip/snmp.h index 5dcef37b..fb9fe2bc 100644 --- a/src/include/lwip/snmp.h +++ b/src/include/lwip/snmp.h @@ -52,6 +52,11 @@ struct snmp_obj_id s32_t id[LWIP_SNMP_OBJ_ID_LEN]; }; +/** Agent setup, start listening to port 161. */ +void snmp_init(void); +void snmp_trap_dst_enable(u8_t dst_idx, u8_t enable); +void snmp_trap_dst_ip_set(u8_t dst_idx, ip_addr_t *dst); + const char * snmp_get_community(void); void snmp_set_community(const char * const community); #if SNMP_COMMUNITY_EXT diff --git a/src/include/lwip/snmp_msg.h b/src/include/lwip/snmp_msg.h index 748bb293..4f254010 100644 --- a/src/include/lwip/snmp_msg.h +++ b/src/include/lwip/snmp_msg.h @@ -297,11 +297,6 @@ extern const char *snmp_community_trap; extern struct snmp_msg_trap trap_msg; -/** Agent setup, start listening to port 161. */ -void snmp_init(void); -void snmp_trap_dst_enable(u8_t dst_idx, u8_t enable); -void snmp_trap_dst_ip_set(u8_t dst_idx, ip_addr_t *dst); - /** Varbind-list functions. */ struct snmp_varbind* snmp_varbind_alloc(struct snmp_obj_id *oid, u8_t type, u16_t len); void snmp_varbind_free(struct snmp_varbind *vb);