![]() |
yumapro
25.10-1
YumaPro SDK
|
Protocol support for net-snmp agent for SNMP support. More...

Functions | |
| int | agentx_parse (netsnmp_session *session, netsnmp_pdu *pdu, u_char *data, size_t len) |
| Utility functions for parsing an AgentX packet. More... | |
| int | agentx_realloc_build (netsnmp_session *session, netsnmp_pdu *pdu, u_char **buf, size_t *buf_len, size_t *out_len) |
| Realloc an AgentX PDU. More... | |
| int | agentx_check_packet (u_char *packet, size_t packet_len) |
| Check the packet. More... | |
Protocol support for net-snmp agent for SNMP support.
Requires WITH_SNMP=1 in build and –with-snmp=true CLI parameter at runtime.
| int agentx_check_packet | ( | u_char * | packet, |
| size_t | packet_len | ||
| ) |
Check the packet.
Only present if WITH_SNMP=1.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| h.version | h.type | h.flags | <reserved> |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| h.sessionID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| h.transactionID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| h.packetID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| h.payload_length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
20 bytes in header
| packet | the packet to check |
| packet_len | length of packet to check |
| int agentx_parse | ( | netsnmp_session * | session, |
| netsnmp_pdu * | pdu, | ||
| u_char * | data, | ||
| size_t | len | ||
| ) |
Utility functions for parsing an AgentX packet.
Only present if WITH_SNMP=1.
| session | The net-snmp session |
| pdu | The snmp pdu information |
| data | The snmp pdu data information |
| len | length of request |
| int agentx_realloc_build | ( | netsnmp_session * | session, |
| netsnmp_pdu * | pdu, | ||
| u_char ** | buf, | ||
| size_t * | buf_len, | ||
| size_t * | out_len | ||
| ) |
Realloc an AgentX PDU.
Only present if WITH_SNMP=1.
| session | The net-snmp session | |
| pdu | The snmp pdu information | |
| [out] | buf | address of return buffer *buf has allocated buffer |
| [out] | buf_len | address of return buffer length *buf_len has length of *buf |
| [out] | out_len | address of output length *out_len has output length |