27#ifndef PROTOCORE_SNMP_NOTIFY_H
28#define PROTOCORE_SNMP_NOTIFY_H
32#if PROTOCORE_ENABLE_SNMP_TRAP
42 SNMP_VB_COUNTER32 = 3,
44 SNMP_VB_TIMETICKS = 5,
57 const uint32_t *oid_val;
66 const uint32_t *trap_oid;
68 uint32_t uptime_ticks;
69 const SnmpVarbind *vbs;
78 const char *community;
107 SnmpNotifyPduArgs pdu;
108 SnmpNotifyDstArgs dst;
109 SnmpNotifyBufArgs buf;
115extern SnmpNotifyVars SnmpNotifyV;
120 void (*
const build_pdu)(uint8_t *work);
121 void (*
const build_v2c)(uint8_t *work);
122 void (*
const trap_v2c)(uint8_t *work);
123 void (*
const inform_v2c)(uint8_t *work);
128void protocore_snmp_notify_build_pdu(uint8_t *work);
129void protocore_snmp_notify_build_v2c(uint8_t *work);
130void protocore_snmp_notify_trap_v2c(uint8_t *work);
131void protocore_snmp_notify_inform_v2c(uint8_t *work);
137static const SnmpNotifyNs SnmpNotify __attribute__((unused)) = {
138 .build_pdu = protocore_snmp_notify_build_pdu,
139 .build_v2c = protocore_snmp_notify_build_v2c,
140 .trap_v2c = protocore_snmp_notify_trap_v2c,
141 .inform_v2c = protocore_snmp_notify_inform_v2c,
153uint8_t *protocore_snmp_notify_span(
void);
EMBED_ENUM_BYTE(ProtoConn, PROTO_NONE=0, PROTO_HTTP=1, PROTO_TELNET=2, PROTO_SSH=3, PROTO_MODBUS=4, PROTO_OPCUA=5, PROTO_SSH_RFWD=6, PROTO_RELAY=7, PROTO_BRIDGE=8, PROTO_NTRIP_CASTER=9, PROTO_MESH=10, PROTO_UDP=11,)
Application protocol spoken on a listener port or connection slot.
The SNMP serialization: ASN.1 Basic Encoding Rules over a caller buffer.