mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-02 14:58:22 +00:00
snmp: moved agent initialization from snmp_msg.h to snmp.h
This commit is contained in:
parent
30445712a5
commit
064d171332
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user