snmp: moved agent initialization from snmp_msg.h to snmp.h

This commit is contained in:
goldsimon 2015-10-02 09:56:37 +02:00
parent 30445712a5
commit 064d171332
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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);