60
#ifdef SNMP_PP_NAMESPACE
71
#define SNMP_ERROR_SUCCESS 0
72
#define SNMP_ERROR_TOO_BIG 1
73
#define SNMP_ERROR_NO_SUCH_NAME 2
74
#define SNMP_ERROR_BAD_VALUE 3
75
#define SNMP_ERROR_READ_ONLY 4
76
#define SNMP_ERROR_GENERAL_VB_ERR 5
77
#define SNMP_ERROR_NO_ACCESS 6
78
#define SNMP_ERROR_WRONG_TYPE 7
79
#define SNMP_ERROR_WRONG_LENGTH 8
80
#define SNMP_ERROR_WRONG_ENCODING 9
81
#define SNMP_ERROR_WRONG_VALUE 10
82
#define SNMP_ERROR_NO_CREATION 11
83
#define SNMP_ERROR_INCONSIST_VAL 12
84
#define SNMP_ERROR_RESOURCE_UNAVAIL 13
85
#define SNMP_ERROR_COMITFAIL 14
86
#define SNMP_ERROR_UNDO_FAIL 15
87
#define SNMP_ERROR_AUTH_ERR 16
88
#define SNMP_ERROR_NOT_WRITEABLE 17
89
#define SNMP_ERROR_INCONSIS_NAME 18
99
#define SNMP_CLASS_SUCCESS 0
100
#define SNMP_CLASS_ERROR -1
101
#define SNMP_CLASS_RESOURCE_UNAVAIL -2
102
#define SNMP_CLASS_INTERNAL_ERROR -3
103
#define SNMP_CLASS_UNSUPPORTED -4
106
#define SNMP_CLASS_TIMEOUT -5
107
#define SNMP_CLASS_ASYNC_RESPONSE -6
108
#define SNMP_CLASS_NOTIFICATION -7
109
#define SNMP_CLASS_SESSION_DESTROYED -8
112
#define SNMP_CLASS_INVALID -10
113
#define SNMP_CLASS_INVALID_PDU -11
114
#define SNMP_CLASS_INVALID_TARGET -12
115
#define SNMP_CLASS_INVALID_CALLBACK -13
116
#define SNMP_CLASS_INVALID_REQID -14
117
#define SNMP_CLASS_INVALID_NOTIFYID -15
118
#define SNMP_CLASS_INVALID_OPERATION -16
119
#define SNMP_CLASS_INVALID_OID -17
120
#define SNMP_CLASS_INVALID_ADDRESS -18
121
#define SNMP_CLASS_ERR_STATUS_SET -19
124
#define SNMP_CLASS_TL_UNSUPPORTED -20
125
#define SNMP_CLASS_TL_IN_USE -21
126
#define SNMP_CLASS_TL_FAILED -22
127
#define SNMP_CLASS_TL_ACCESS_DENIED -23
130
#define SNMP_CLASS_SHUTDOWN -24
133
#define SNMP_CLASS_BADVERSION -50
134
#define SNMP_CLASS_ASN1ERROR -51
137
#define MAX_POS_ERROR SNMP_ERROR_INCONSIS_NAME
138
#define MAX_NEG_ERROR SNMP_CLASS_SHUTDOWN
141
#ifdef _INCLUDE_SNMP_ERR_STRINGS
151
static
const
char
* pErrs[] = {
153
"SNMP: Response PDU Too Big"
,
154
"SNMP: Variable does not exist"
,
155
"SNMP: Cannot modify variable: Bad Value"
,
156
"SNMP: Cannot modify object, Read Only"
,
157
"SNMP: Cannot perform operation, General Error"
,
158
"SNMP: Cannot access variable, No Access"
,
159
"SNMP: Cannot create/modify variable, Wrong Type"
,
160
"SNMP: Cannot create/set variable, Wrong Length"
,
161
"SNMP: Cannot create/set variable, Wrong Encoding"
,
162
"SNMP: Cannot create/set variable, Wrong Value"
,
163
"SNMP: Cannot create variable, Creation Not Allowed"
,
164
"SNMP: Cannot create/set variable, Inconsistent Value"
,
165
"SNMP: Cannot create/set variable, Resource Unavailable"
,
166
"SNMP: Cannot create/set variable, Commit Failed"
,
167
"SNMP: Cannot create/set variable, Undo Failed"
,
168
"SNMP: Cannot perform operation, Authorization Error"
,
169
"SNMP: Cannot create/set variable, Not Writable"
,
170
"SNMP: Cannot create variable, Inconsistent Name"
,
171
"SNMP: Unknown Error Status"
175
static
const
char
* nv3Errs[] = {
176
"SNMPv3: v3MP error"
,
178
"SNMPv3: Unsupported Security Model"
,
179
"SNMPv3: Message not in Time Window"
,
180
"SNMPv3: received same Message twice"
,
181
"SNMPv3: Invalid Message"
,
182
"SNMPv3: Invalid EngineID"
,
183
"SNMPv3: v3MP not initialized"
,
184
"SNMPv3: Parse Error"
,
185
"SNMPv3: Received Message with unknown MsgID"
,
186
"SNMPv3: Message does not match known message"
,
187
"SNMPv3: Community format error"
,
188
"SNMPv3: Unknown UserName"
,
189
"SNMPv3: Build error"
,
190
"SNMPv3: USM: error"
,
191
"SNMPv3: Unknown pdu handlers"
,
192
"SNMPv3: Unavailable Context"
,
193
"SNMPv3: Unknown Context"
,
194
"SNMPv3: Report sent"
,
195
"SNMPv3: Unknown errorcode"
198
static
const
char
* pv3Errs[] = {
200
"SNMPv3: USM: error"
,
201
"SNMPv3: USM: Configfile write error"
,
202
"SNMPv3: USM: Unsupported SecurityLevel"
,
203
"SNMPv3: USM: Unknown SecurityName"
,
204
"SNMPv3: USM: Encryption error"
,
205
"SNMPv3: USM: Decryption error"
,
206
"SNMPv3: USM: Authentication error"
,
207
"SNMPv3: USM: Authentication failure"
,
208
"SNMPv3: USM: Parse error"
,
209
"SNMPv3: USM: Unknown EngineID"
,
210
"SNMPv3: USM: Message not in TimeWindow"
,
211
"SNMPv3: USM: Unsupported AuthProtocol"
,
212
"SNMPv3: USM: Unsupported PrivProtocol"
,
213
"SNMPv3: USM: Address error"
,
214
"SNMPv3: USM: Could not create file"
,
215
"SNMPv3: USM: Could not open file"
,
216
"SNMPv3: USM: Could not rename file"
,
217
"SNMPv3: USM: Could not delete file"
,
218
"SNMPv3: USM: Could not write into file"
,
219
"SNMPv3: USM: Could not read from file"
,
220
"SNMPv3: USM: unknown errorcode"
224
static
const
char
* nErrs[] =
228
"SNMP++: Operation failed"
,
229
"SNMP++: Resource unavailable"
,
230
"SNMP++: Internal error"
,
231
"SNMP++: Unsupported function"
,
234
"SNMP++: SNMP request timed out"
,
235
"SNMP++: Received SNMP Response"
,
237
"SNMP++: Received SNMP Notification (trap or inform)"
,
239
"SNMP++: Closing session with outstanding requests"
,
240
"Unknown error code"
,
243
"SNMP++: Class not valid"
,
244
"SNMP++: Invalid Pdu"
,
245
"SNMP++: Invalid Target"
,
246
"SNMP++: Invalid (null) Callback Function"
,
247
"SNMP++: Invalid Request Id"
,
248
"SNMP++: Invalid Notification Id"
,
250
"SNMP++: SNMP Operation not supported on specified Target"
,
251
"SNMP++: Invalid Object Identifier"
,
252
"SNMP++: Invalid Address"
,
254
"SNMP++: Agent indicates error in SNMP request"
,
257
"SNMP++: Transport is not supported"
,
258
"SNMP++: Transport is in use"
,
259
"SNMP++: Transport operation failed"
,
260
"SNMP++: Transport access denied"
,
261
"SNMP++: Blocked Mode Shutdown"
,
263
"Unknown error code"
,
266
#endif //_INCLUDE_SNMP_ERR_STRINGS
268
#ifdef SNMP_PP_NAMESPACE