31#ifndef _SNMP_AGENT_INFORM_H
32#define _SNMP_AGENT_INFORM_H
39#ifndef SNMP_AGENT_INFORM_SUPPORT
40 #define SNMP_AGENT_INFORM_SUPPORT DISABLED
41#elif (SNMP_AGENT_INFORM_SUPPORT != ENABLED && SNMP_AGENT_INFORM_SUPPORT != DISABLED)
42 #error SNMP_AGENT_INFORM_SUPPORT parameter is not valid
46#ifndef SNMP_AGENT_INFORM_MAX_RETRIES
47 #define SNMP_AGENT_INFORM_MAX_RETRIES 5
48#elif (SNMP_AGENT_INFORM_MAX_RETRIES < 1)
49 #error SNMP_AGENT_INFORM_MAX_RETRIES parameter is not valid
53#ifndef SNMP_AGENT_INFORM_TIMEOUT
54 #define SNMP_AGENT_INFORM_TIMEOUT 2000
55#elif (SNMP_AGENT_INFORM_TIMEOUT < 1000)
56 #error SNMP_AGENT_INFORM_TIMEOUT parameter is not valid
71 SNMP_AGENT_STATE_IDLE = 0,
72 SNMP_AGENT_STATE_SENDING_GET_REQ = 1,
73 SNMP_AGENT_STATE_WAITING_REPORT = 2,
74 SNMP_AGENT_STATE_SENDING_INFORM_REQ = 3,
75 SNMP_AGENT_STATE_WAITING_GET_RESP = 4
80error_t snmpFormatInformRequestMessage(SnmpAgentContext *context,
81 SnmpVersion version,
const char_t *userName, uint_t genericTrapType,
83 uint_t objectListSize);
85error_t snmpFormatInformRequestPdu(SnmpAgentContext *context,
86 SnmpVersion version,
const char_t *userName, uint_t genericTrapType,
88 uint_t objectListSize);
90error_t snmpFormatGetRequestMessage(SnmpAgentContext *context,
95error_t snmpProcessGetResponsePdu(SnmpAgentContext *context);
96error_t snmpProcessReportPdu(SnmpAgentContext *context);
error_t
Error codes.
Definition error.h:43
SNMP agent (Simple Network Management Protocol)
SnmpVersion
SNMP version identifiers.
Definition snmp_common.h:137
Object descriptor for trap notifications.
Definition snmp_agent_trap.h:56