Go to the documentation of this file.
31 #ifndef _SNMP_COMMON_H
32 #define _SNMP_COMMON_H
38 #ifndef SNMP_V1_SUPPORT
39 #define SNMP_V1_SUPPORT ENABLED
40 #elif (SNMP_V1_SUPPORT != ENABLED && SNMP_V1_SUPPORT != DISABLED)
41 #error SNMP_V1_SUPPORT parameter is not valid
45 #ifndef SNMP_V2C_SUPPORT
46 #define SNMP_V2C_SUPPORT ENABLED
47 #elif (SNMP_V2C_SUPPORT != ENABLED && SNMP_V2C_SUPPORT != DISABLED)
48 #error SNMP_V2C_SUPPORT parameter is not valid
52 #ifndef SNMP_V3_SUPPORT
53 #define SNMP_V3_SUPPORT DISABLED
54 #elif (SNMP_V3_SUPPORT != ENABLED && SNMP_V3_SUPPORT != DISABLED)
55 #error SNMP_V3_SUPPORT parameter is not valid
59 #ifndef SNMP_MAX_MSG_SIZE
60 #define SNMP_MAX_MSG_SIZE 1452
61 #elif (SNMP_MAX_MSG_SIZE < 484 || SNMP_MAX_MSG_SIZE > 65535)
62 #error SNMP_MAX_MSG_SIZE parameter is not valid
66 #ifndef SNMP_MAX_CONTEXT_ENGINE_SIZE
67 #define SNMP_MAX_CONTEXT_ENGINE_SIZE 32
68 #elif (SNMP_MAX_CONTEXT_ENGINE_SIZE < 1)
69 #error SNMP_MAX_CONTEXT_ENGINE_SIZE parameter is not valid
73 #ifndef SNMP_MAX_CONTEXT_NAME_LEN
74 #define SNMP_MAX_CONTEXT_NAME_LEN 32
75 #elif (SNMP_MAX_CONTEXT_NAME_LEN < 1)
76 #error SNMP_MAX_CONTEXT_NAME_LEN parameter is not valid
80 #ifndef SNMP_MAX_USER_NAME_LEN
81 #define SNMP_MAX_USER_NAME_LEN 32
82 #elif (SNMP_MAX_USER_NAME_LEN < 1)
83 #error SNMP_MAX_USER_NAME_LEN parameter is not valid
87 #ifndef SNMP_MAX_PUBLIC_VALUE_SIZE
88 #define SNMP_MAX_PUBLIC_VALUE_SIZE 32
89 #elif (SNMP_MAX_PUBLIC_VALUE_SIZE < 1)
90 #error SNMP_MAX_PUBLIC_VALUE_SIZE parameter is not valid
94 #ifndef SNMP_MAX_GROUP_NAME_LEN
95 #define SNMP_MAX_GROUP_NAME_LEN 32
96 #elif (SNMP_MAX_GROUP_NAME_LEN < 1)
97 #error SNMP_MAX_GROUP_NAME_LEN parameter is not valid
101 #ifndef SNMP_MAX_VIEW_NAME_LEN
102 #define SNMP_MAX_VIEW_NAME_LEN 32
103 #elif (SNMP_MAX_VIEW_NAME_LEN < 1)
104 #error SNMP_MAX_VIEW_NAME_LEN parameter is not valid
108 #ifndef SNMP_MAX_BIT_MASK_SIZE
109 #define SNMP_MAX_BIT_MASK_SIZE 16
110 #elif (SNMP_MAX_BIT_MASK_SIZE < 1)
111 #error SNMP_MAX_MASK_SIZE parameter is not valid
115 #ifndef SNMP_MAX_OID_SIZE
116 #define SNMP_MAX_OID_SIZE 16
117 #elif (SNMP_MAX_OID_SIZE < 1)
118 #error SNMP_MAX_OID_SIZE parameter is not valid
122 #define SNMP_PORT 161
124 #define SNMP_TRAP_PORT 162
SnmpGenericTrapType
SNMP generic trap types.
@ SNMP_ENGINE_ID_FORMAT_IPV6
@ SNMP_PDU_INFORM_REQUEST
@ SNMP_EXCEPTION_END_OF_MIB_VIEW
SnmpException
SNMP exceptions.
@ SNMP_ERROR_NO_SUCH_NAME
@ SNMP_ERROR_AUTHORIZATION
@ SNMP_EXCEPTION_NO_SUCH_OBJECT
@ SNMP_ENGINE_ID_FORMAT_OCTETS
SnmpVersion
SNMP version identifiers.
@ SNMP_TRAP_EGP_NEIGHBOR_LOSS
@ SNMP_ERROR_NOT_WRITABLE
@ SNMP_TRAP_ENTERPRISE_SPECIFIC
@ SNMP_ERROR_INCONSISTENT_VALUE
@ SNMP_ERROR_WRONG_ENCODING
@ SNMP_ENGINE_ID_FORMAT_TEXT
@ SNMP_PDU_GET_BULK_REQUEST
SnmpPduType
SNMP PDU types.
@ SNMP_ERROR_COMMIT_FAILED
@ SNMP_ERROR_WRONG_LENGTH
@ SNMP_PDU_GET_NEXT_REQUEST
@ SNMP_EXCEPTION_NO_SUCH_INSTANCE
@ SNMP_ENGINE_ID_FORMAT_MAC
SnmpEngineIdFormat
SNMP engine ID format.
@ SNMP_ENGINE_ID_FORMAT_IPV4
SnmpErrorStatus
SNMP error status.
@ SNMP_ERROR_INCONSISTENT_NAME
@ SNMP_ERROR_RESOURCE_UNAVAILABLE