snmp_agent_trap.c
error_t snmpEncryptData(const SnmpUserEntry *user, SnmpMessage *message, uint64_t *salt)
Data encryption.
Definition: snmp_agent_usm.c:563
error_t snmpFormatTrapPdu(SnmpAgentContext *context, SnmpVersion version, const char_t *userName, uint_t genericTrapType, uint_t specificTrapCode, const SnmpTrapObject *objectList, uint_t objectListSize)
Format Trap-PDU or SNMPv2-Trap-PDU.
Definition: snmp_agent_trap.c:186
MIB-II module.
error_t snmpWriteScopedPdu(SnmpMessage *message)
Format scopedPDU.
Definition: snmp_agent_message.c:1121
SNMP trap notifications.
SNMP agent (Simple Network Management Protocol)
SnmpUserEntry * snmpFindUserEntry(SnmpAgentContext *context, const char_t *name, size_t length)
Search the user table for a given user name.
Definition: snmp_agent_usm.c:130
Helper functions for SNMP agent.
size_t snmpGetMacLength(SnmpAuthProtocol authProtocol)
Get the length of the truncated MAC for a given authentication protocol.
Definition: snmp_agent_usm.c:903
error_t snmpWritePduHeader(SnmpMessage *message)
Format PDU header.
Definition: snmp_agent_message.c:1317
error_t snmpFormatTrapMessage(SnmpAgentContext *context, SnmpVersion version, const char_t *userName, uint_t genericTrapType, uint_t specificTrapCode, const SnmpTrapObject *objectList, uint_t objectListSize)
Format SNMP Trap message.
Definition: snmp_agent_trap.c:58
error_t snmpComputeMessageOverhead(SnmpMessage *message)
Compute SNMP message overhead.
Definition: snmp_agent_message.c:201
error_t snmpAuthOutgoingMessage(const SnmpUserEntry *user, SnmpMessage *message)
Authenticate outgoing SNMP message.
Definition: snmp_agent_usm.c:469
TCP/IP stack core.
error_t snmpWriteTrapVarBindingList(SnmpAgentContext *context, uint_t genericTrapType, uint_t specificTrapCode, const SnmpTrapObject *objectList, uint_t objectListSize)
Format the variable binding list for Trap-PDU or SNMPv2-Trap-PDU.
Definition: snmp_agent_misc.c:477
Debugging facilities.
void snmpInitMessage(SnmpMessage *message)
Initialize a SNMP message.
Definition: snmp_agent_message.c:52
error_t snmpWriteMessageHeader(SnmpMessage *message)
Format SNMP message header.
Definition: snmp_agent_message.c:320