snmp_agent_message.c
error_t snmpEncodeUnsignedInt32(uint32_t value, uint8_t *dest, size_t *length)
Encode a 32-bit unsigned integer.
Definition: snmp_agent_message.c:1565
error_t snmpWriteGlobalData(SnmpMessage *message)
Format msgGlobalData field.
Definition: snmp_agent_message.c:596
error_t snmpParseGlobalData(SnmpMessage *message)
Parse msgGlobalData field.
Definition: snmp_agent_message.c:480
error_t snmpParsePduHeader(SnmpMessage *message)
Parse PDU header.
Definition: snmp_agent_message.c:1204
error_t snmpWriteScopedPdu(SnmpMessage *message)
Format scopedPDU.
Definition: snmp_agent_message.c:1121
error_t snmpWriteCommunity(SnmpMessage *message)
Format community name.
Definition: snmp_agent_message.c:440
error_t asn1ReadTag(const uint8_t *data, size_t length, Asn1Tag *tag)
Read an ASN.1 tag from the input stream.
Definition: asn1.c:52
SNMP agent (Simple Network Management Protocol)
error_t snmpInitResponse(SnmpAgentContext *context)
Initialize a GetResponse-PDU.
Definition: snmp_agent_message.c:128
error_t snmpParseScopedPdu(SnmpMessage *message)
Parse scopedPDU field.
Definition: snmp_agent_message.c:1047
error_t asn1ReadInt32(const uint8_t *data, size_t length, Asn1Tag *tag, int32_t *value)
Read a 32-bit integer from the input stream.
Definition: asn1.c:285
General definitions for cryptographic algorithms.
error_t asn1WriteTag(Asn1Tag *tag, bool_t reverse, uint8_t *data, size_t *written)
Write an ASN.1 tag.
Definition: asn1.c:334
SNMP MPD MIB module.
error_t snmpWriteSecurityParameters(SnmpMessage *message)
Format msgSecurityParameters field.
Definition: snmp_agent_message.c:864
error_t snmpParseSecurityParameters(SnmpMessage *message)
Parse msgSecurityParameters field.
Definition: snmp_agent_message.c:694
error_t snmpEncodeInt32(int32_t value, uint8_t *dest, size_t *length)
Encode a 32-bit signed integer.
Definition: snmp_agent_message.c:1514
error_t snmpParseMessageHeader(SnmpMessage *message)
Parse SNMP message header.
Definition: snmp_agent_message.c:267
error_t snmpDecodeInt32(const uint8_t *src, size_t length, int32_t *value)
Decode a 32-bit signed integer.
Definition: snmp_agent_message.c:1671
error_t snmpWritePduHeader(SnmpMessage *message)
Format PDU header.
Definition: snmp_agent_message.c:1317
error_t snmpDecodeUnsignedInt64(const uint8_t *src, size_t length, uint64_t *value)
Decode a 64-bit unsigned integer.
Definition: snmp_agent_message.c:1746
error_t snmpEncodeUnsignedInt64(uint64_t value, uint8_t *dest, size_t *length)
Encode a 64-bit unsigned integer.
Definition: snmp_agent_message.c:1617
error_t snmpComputeMessageOverhead(SnmpMessage *message)
Compute SNMP message overhead.
Definition: snmp_agent_message.c:201
#define SNMP_MPD_MIB_INC_COUNTER32(name, value)
Definition: snmp_mpd_mib_module.h:46
TCP/IP stack core.
error_t asn1ReadSequence(const uint8_t *data, size_t length, Asn1Tag *tag)
Read an ASN.1 sequence from the input stream.
Definition: asn1.c:163
error_t asn1WriteInt32(int32_t value, bool_t reverse, uint8_t *data, size_t *written)
Write a 32-bit integer to the output stream.
Definition: asn1.c:495
error_t snmpParseCommunity(SnmpMessage *message)
Parse community name.
Definition: snmp_agent_message.c:398
error_t snmpDecodeUnsignedInt32(const uint8_t *src, size_t length, uint32_t *value)
Decode a 32-bit unsigned integer.
Definition: snmp_agent_message.c:1707
error_t asn1CheckTag(const Asn1Tag *tag, bool_t constructed, uint_t objClass, uint_t objType)
Enforce the type of a specified tag.
Definition: asn1.c:653
Debugging facilities.
ASN.1 (Abstract Syntax Notation One)
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