27#ifndef PROTOCORE_SNMP_NOTIFY_H
28#define PROTOCORE_SNMP_NOTIFY_H
32#if PROTOCORE_ENABLE_SNMP_TRAP
43 SNMP_VB_COUNTER32 = 3,
45 SNMP_VB_TIMETICKS = 5,
58 const uint32_t *oid_val;
67 const uint32_t *trap_oid;
69 uint32_t uptime_ticks;
70 const SnmpVarbind *vbs;
79 const char *community;
108 SnmpNotifyPduArgs pdu;
109 SnmpNotifyDstArgs dst;
110 SnmpNotifyBufArgs buf;
116extern SnmpNotifyVars SnmpNotifyV;
121 void (*
const build_pdu)(uint8_t *work);
122 void (*
const build_v2c)(uint8_t *work);
123 void (*
const trap_v2c)(uint8_t *work);
124 void (*
const inform_v2c)(uint8_t *work);
129void protocore_snmp_notify_build_pdu(uint8_t *work);
130void protocore_snmp_notify_build_v2c(uint8_t *work);
131void protocore_snmp_notify_trap_v2c(uint8_t *work);
132void protocore_snmp_notify_inform_v2c(uint8_t *work);
138static const SnmpNotifyNs SnmpNotify __attribute__((unused)) = {
139 .build_pdu = protocore_snmp_notify_build_pdu,
140 .build_v2c = protocore_snmp_notify_build_v2c,
141 .trap_v2c = protocore_snmp_notify_trap_v2c,
142 .inform_v2c = protocore_snmp_notify_inform_v2c,
154uint8_t *protocore_snmp_notify_span(
void);
PROTO_ENUM_PACKED
Application protocol spoken on a listener port or connection slot.
The SNMP serialization: ASN.1 Basic Encoding Rules over a caller buffer.
#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