38#ifndef PROTOCORE_SNMP_V3_H
39#define PROTOCORE_SNMP_V3_H
43#if PROTOCORE_ENABLE_SNMP_V3
47#if PROTOCORE_ENABLE_SNMP_TRAP
52#define SNMP_V3_AUTH_PARAM_LEN 24
54#define SNMP_V3_PRIV_PARAM_LEN 8
59 const uint8_t *engine_id;
68 const char *auth_pass;
69 const char *priv_pass;
81#if PROTOCORE_ENABLE_SNMP_TRAP
88 const uint32_t *trap_oid;
90 const SnmpVarbind *vbs;
118 SnmpV3EngineArgs engine;
121#if PROTOCORE_ENABLE_SNMP_TRAP
122 SnmpV3NotifyArgs notify;
127#if PROTOCORE_ENABLE_SNMP_TRAP
132extern SnmpV3Vars SnmpV3V;
137 void (*
const init)(uint8_t *work);
138 void (*
const set_user)(uint8_t *work);
139 void (*
const set_boots)(uint8_t *work);
140 void (*
const get_boots)(uint8_t *work);
141 void (*
const process)(uint8_t *work);
142 void (*
const trap)(uint8_t *work);
143 void (*
const inform)(uint8_t *work);
148void protocore_snmp_v3_init(uint8_t *work);
149void protocore_snmp_v3_set_user(uint8_t *work);
150void protocore_snmp_v3_set_boots(uint8_t *work);
151void protocore_snmp_v3_get_boots(uint8_t *work);
152void protocore_snmp_v3_process(uint8_t *work);
153void protocore_snmp_v3_trap(uint8_t *work);
154void protocore_snmp_v3_inform(uint8_t *work);
160static const SnmpV3Ns SnmpV3 __attribute__((unused)) = {
161 .init = protocore_snmp_v3_init,
162 .set_user = protocore_snmp_v3_set_user,
163 .set_boots = protocore_snmp_v3_set_boots,
164 .get_boots = protocore_snmp_v3_get_boots,
165 .process = protocore_snmp_v3_process,
166 .trap = protocore_snmp_v3_trap,
167 .inform = protocore_snmp_v3_inform,
179uint8_t *protocore_snmp_v3_span(
void);
Notifications: the SNMPv2-Trap-PDU and the InformRequest-PDU (PROTOCORE_ENABLE_SNMP_TRAP).
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS