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);
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);
104err_t snmp_send_inform_generic(
s32_t generic_trap,
struct snmp_varbind *varbinds,
s32_t *ptr_request_id);
105err_t snmp_send_inform_specific(
s32_t specific_trap,
struct snmp_varbind *varbinds,
s32_t *ptr_request_id);
106err_t snmp_send_inform(
const struct snmp_obj_id* oid,
s32_t generic_trap,
s32_t specific_trap,
struct snmp_varbind *varbinds,
s32_t *ptr_request_id);
108typedef void (*snmp_inform_callback_fct)(
struct snmp_request *
request,
void* callback_arg);
109void snmp_set_inform_callback(snmp_inform_callback_fct inform_callback,
void* callback_arg);
111void snmp_set_default_trap_version(
u8_t snmp_version);
112u8_t snmp_get_default_trap_version(
void);
114#define SNMP_AUTH_TRAPS_DISABLED 0
115#define SNMP_AUTH_TRAPS_ENABLED 1
117u8_t snmp_get_auth_traps_enabled(
void);
119u8_t snmp_v1_enabled(
void);
120u8_t snmp_v2c_enabled(
void);
121u8_t snmp_v3_enabled(
void);
126const char * snmp_get_community(
void);
127const char * snmp_get_community_write(
void);
128const char * snmp_get_community_trap(
void);
129void snmp_set_community(
const char *
const community);
130void snmp_set_community_write(
const char *
const community);
131void snmp_set_community_trap(
const char *
const community);
133void snmp_coldstart_trap(
void);
134void snmp_authfail_trap(
void);
136typedef void (*snmp_write_callback_fct)(
const u32_t* oid,
u8_t oid_len,
void* callback_arg);
137void snmp_set_write_callback(snmp_write_callback_fct write_callback,
void* callback_arg);
GLuint GLuint GLsizei GLenum type
static unsigned __int64 next