39#ifndef LWIP_HDR_APPS_SNMP_H
40#define LWIP_HDR_APPS_SNMP_H
57 struct snmp_varbind *next;
59 struct snmp_varbind *prev;
62 struct snmp_obj_id oid;
77void snmp_set_mibs(
const struct snmp_mib **mibs, u8_t num_mibs);
79void snmp_set_device_enterprise_oid(
const struct snmp_obj_id* device_enterprise_oid);
80const struct snmp_obj_id* snmp_get_device_enterprise_oid(
void);
82void snmp_trap_dst_enable(u8_t dst_idx, u8_t enable);
83void snmp_trap_dst_ip_set(u8_t dst_idx,
const ip_addr_t *dst);
86#define SNMP_GENTRAP_COLDSTART 0
88#define SNMP_GENTRAP_WARMSTART 1
90#define SNMP_GENTRAP_LINKDOWN 2
92#define SNMP_GENTRAP_LINKUP 3
94#define SNMP_GENTRAP_AUTH_FAILURE 4
96#define SNMP_GENTRAP_EGP_NEIGHBOR_LOSS 5
98#define SNMP_GENTRAP_ENTERPRISE_SPECIFIC 6
100err_t snmp_send_trap_generic(s32_t generic_trap);
101err_t snmp_send_trap_specific(s32_t specific_trap,
struct snmp_varbind *varbinds);
102err_t snmp_send_trap(
const struct snmp_obj_id* oid, s32_t generic_trap, s32_t specific_trap,
struct snmp_varbind *varbinds);
104#define SNMP_AUTH_TRAPS_DISABLED 0
105#define SNMP_AUTH_TRAPS_ENABLED 1
106void snmp_set_auth_traps_enabled(u8_t enable);
107u8_t snmp_get_auth_traps_enabled(
void);
109u8_t snmp_v1_enabled(
void);
110u8_t snmp_v2c_enabled(
void);
111u8_t snmp_v3_enabled(
void);
112void snmp_v1_enable(u8_t enable);
113void snmp_v2c_enable(u8_t enable);
114void snmp_v3_enable(u8_t enable);
116const char * snmp_get_community(
void);
117const char * snmp_get_community_write(
void);
118const char * snmp_get_community_trap(
void);
119void snmp_set_community(
const char *
const community);
120void snmp_set_community_write(
const char *
const community);
121void snmp_set_community_trap(
const char *
const community);
123void snmp_coldstart_trap(
void);
124void snmp_authfail_trap(
void);
126typedef void (*snmp_write_callback_fct)(
const u32_t* oid, u8_t oid_len,
void* callback_arg);
127void snmp_set_write_callback(snmp_write_callback_fct write_callback,
void* callback_arg);
s8_t err_t
Definition: err.h:96