SNMP++  3.3.4
snmperrs.h File Reference

Go to the source code of this file.

Macros

#define MAX_POS_ERROR   SNMP_ERROR_INCONSIS_NAME
 
#define MAX_NEG_ERROR   SNMP_CLASS_SHUTDOWN
 
Pdu error codes

These values are error status values from RFC 1905

The values can be returned via Pdu::get_error_status()

#define SNMP_ERROR_SUCCESS   0
 Success Status. More...
 
#define SNMP_ERROR_TOO_BIG   1
 Pdu encoding too big. More...
 
#define SNMP_ERROR_NO_SUCH_NAME   2
 No such VB name, see error index. More...
 
#define SNMP_ERROR_BAD_VALUE   3
 Bad Vb. More...
 
#define SNMP_ERROR_READ_ONLY   4
 VB is read only, see error index. More...
 
#define SNMP_ERROR_GENERAL_VB_ERR   5
 General VB error, see error index. More...
 
#define SNMP_ERROR_NO_ACCESS   6
 No access to MIBs data. More...
 
#define SNMP_ERROR_WRONG_TYPE   7
 Requested type was incorrect. More...
 
#define SNMP_ERROR_WRONG_LENGTH   8
 Request Pdu has inccorect length. More...
 
#define SNMP_ERROR_WRONG_ENCODING   9
 Request Pdu has wrong encoding. More...
 
#define SNMP_ERROR_WRONG_VALUE   10
 Request Pdu has wrong value. More...
 
#define SNMP_ERROR_NO_CREATION   11
 Unable to create object specified. More...
 
#define SNMP_ERROR_INCONSIST_VAL   12
 Inconsistent value in request. More...
 
#define SNMP_ERROR_RESOURCE_UNAVAIL   13
 Resources unavailable. More...
 
#define SNMP_ERROR_COMITFAIL   14
 Unable to comit. More...
 
#define SNMP_ERROR_UNDO_FAIL   15
 Unable to undo. More...
 
#define SNMP_ERROR_AUTH_ERR   16
 Authorization error. More...
 
#define SNMP_ERROR_NOT_WRITEABLE   17
 Mib Object not writeable. More...
 
#define SNMP_ERROR_INCONSIS_NAME   18
 Inconsistent naming used. More...
 
Snmp class return codes
#define SNMP_CLASS_SUCCESS   0
 success More...
 
#define SNMP_CLASS_ERROR   -1
 general error More...
 
#define SNMP_CLASS_RESOURCE_UNAVAIL   -2
 e.g., malloc failed More...
 
#define SNMP_CLASS_INTERNAL_ERROR   -3
 unexpected / internal error More...
 
#define SNMP_CLASS_UNSUPPORTED   -4
 unsupported function More...
 
#define SNMP_CLASS_TIMEOUT   -5
 outstanding request timed out More...
 
#define SNMP_CLASS_ASYNC_RESPONSE   -6
 received response for outstd request More...
 
#define SNMP_CLASS_NOTIFICATION   -7
 received notification (trap/inform) More...
 
#define SNMP_CLASS_SESSION_DESTROYED   -8
 snmp::destroyed with oustanding reqs pending More...
 
#define SNMP_CLASS_INVALID   -10
 snmp::mf called on invalid instance More...
 
#define SNMP_CLASS_INVALID_PDU   -11
 invalid pdu passed to mf More...
 
#define SNMP_CLASS_INVALID_TARGET   -12
 invalid target passed to mf More...
 
#define SNMP_CLASS_INVALID_CALLBACK   -13
 invalid callback to mf More...
 
#define SNMP_CLASS_INVALID_REQID   -14
 invalid request id to cancel More...
 
#define SNMP_CLASS_INVALID_NOTIFYID   -15
 missing trap/inform oid More...
 
#define SNMP_CLASS_INVALID_OPERATION   -16
 snmp operation not allowed for specified target More...
 
#define SNMP_CLASS_INVALID_OID   -17
 invalid oid passed to mf More...
 
#define SNMP_CLASS_INVALID_ADDRESS   -18
 invalid address passed to mf More...
 
#define SNMP_CLASS_ERR_STATUS_SET   -19
 agent returned response pdu with error_status set More...
 
#define SNMP_CLASS_TL_UNSUPPORTED   -20
 transport unsupported More...
 
#define SNMP_CLASS_TL_IN_USE   -21
 transport in use More...
 
#define SNMP_CLASS_TL_FAILED   -22
 transport operation failed More...
 
#define SNMP_CLASS_TL_ACCESS_DENIED   -23
 transport missing rights More...
 
#define SNMP_CLASS_SHUTDOWN   -24
 used for back door shutdown More...
 
#define SNMP_CLASS_BADVERSION   -50
 unsupported version More...
 
#define SNMP_CLASS_ASN1ERROR   -51
 used for ASN.1 parse errors More...
 

Macro Definition Documentation

#define MAX_NEG_ERROR   SNMP_CLASS_SHUTDOWN

Definition at line 138 of file snmperrs.h.

#define MAX_POS_ERROR   SNMP_ERROR_INCONSIS_NAME

Definition at line 137 of file snmperrs.h.

#define SNMP_CLASS_ASN1ERROR   -51

used for ASN.1 parse errors

Definition at line 134 of file snmperrs.h.

#define SNMP_CLASS_ASYNC_RESPONSE   -6

received response for outstd request

Definition at line 107 of file snmperrs.h.

#define SNMP_CLASS_BADVERSION   -50

unsupported version

Definition at line 133 of file snmperrs.h.

#define SNMP_CLASS_ERR_STATUS_SET   -19

agent returned response pdu with error_status set

Definition at line 121 of file snmperrs.h.

#define SNMP_CLASS_ERROR   -1

general error

Definition at line 100 of file snmperrs.h.

#define SNMP_CLASS_INTERNAL_ERROR   -3

unexpected / internal error

Definition at line 102 of file snmperrs.h.

#define SNMP_CLASS_INVALID   -10

snmp::mf called on invalid instance

Definition at line 112 of file snmperrs.h.

#define SNMP_CLASS_INVALID_ADDRESS   -18

invalid address passed to mf

Definition at line 120 of file snmperrs.h.

#define SNMP_CLASS_INVALID_CALLBACK   -13

invalid callback to mf

Definition at line 115 of file snmperrs.h.

#define SNMP_CLASS_INVALID_NOTIFYID   -15

missing trap/inform oid

Definition at line 117 of file snmperrs.h.

#define SNMP_CLASS_INVALID_OID   -17

invalid oid passed to mf

Definition at line 119 of file snmperrs.h.

#define SNMP_CLASS_INVALID_OPERATION   -16

snmp operation not allowed for specified target

Definition at line 118 of file snmperrs.h.

#define SNMP_CLASS_INVALID_PDU   -11

invalid pdu passed to mf

Definition at line 113 of file snmperrs.h.

#define SNMP_CLASS_INVALID_REQID   -14

invalid request id to cancel

Definition at line 116 of file snmperrs.h.

#define SNMP_CLASS_INVALID_TARGET   -12

invalid target passed to mf

Definition at line 114 of file snmperrs.h.

#define SNMP_CLASS_NOTIFICATION   -7

received notification (trap/inform)

Definition at line 108 of file snmperrs.h.

#define SNMP_CLASS_RESOURCE_UNAVAIL   -2

e.g., malloc failed

Definition at line 101 of file snmperrs.h.

#define SNMP_CLASS_SESSION_DESTROYED   -8

snmp::destroyed with oustanding reqs pending

Definition at line 109 of file snmperrs.h.

#define SNMP_CLASS_SHUTDOWN   -24

used for back door shutdown

Definition at line 130 of file snmperrs.h.

#define SNMP_CLASS_SUCCESS   0

success

Definition at line 99 of file snmperrs.h.

#define SNMP_CLASS_TIMEOUT   -5

outstanding request timed out

Definition at line 106 of file snmperrs.h.

#define SNMP_CLASS_TL_ACCESS_DENIED   -23

transport missing rights

Definition at line 127 of file snmperrs.h.

#define SNMP_CLASS_TL_FAILED   -22

transport operation failed

Definition at line 126 of file snmperrs.h.

#define SNMP_CLASS_TL_IN_USE   -21

transport in use

Definition at line 125 of file snmperrs.h.

#define SNMP_CLASS_TL_UNSUPPORTED   -20

transport unsupported

Definition at line 124 of file snmperrs.h.

#define SNMP_CLASS_UNSUPPORTED   -4

unsupported function

Definition at line 103 of file snmperrs.h.

#define SNMP_ERROR_AUTH_ERR   16

Authorization error.

Definition at line 87 of file snmperrs.h.

#define SNMP_ERROR_BAD_VALUE   3

Bad Vb.

Definition at line 74 of file snmperrs.h.

#define SNMP_ERROR_COMITFAIL   14

Unable to comit.

Definition at line 85 of file snmperrs.h.

#define SNMP_ERROR_GENERAL_VB_ERR   5

General VB error, see error index.

Definition at line 76 of file snmperrs.h.

#define SNMP_ERROR_INCONSIS_NAME   18

Inconsistent naming used.

Definition at line 89 of file snmperrs.h.

#define SNMP_ERROR_INCONSIST_VAL   12

Inconsistent value in request.

Definition at line 83 of file snmperrs.h.

#define SNMP_ERROR_NO_ACCESS   6

No access to MIBs data.

Definition at line 77 of file snmperrs.h.

#define SNMP_ERROR_NO_CREATION   11

Unable to create object specified.

Definition at line 82 of file snmperrs.h.

#define SNMP_ERROR_NO_SUCH_NAME   2

No such VB name, see error index.

Definition at line 73 of file snmperrs.h.

#define SNMP_ERROR_NOT_WRITEABLE   17

Mib Object not writeable.

Definition at line 88 of file snmperrs.h.

#define SNMP_ERROR_READ_ONLY   4

VB is read only, see error index.

Definition at line 75 of file snmperrs.h.

#define SNMP_ERROR_RESOURCE_UNAVAIL   13

Resources unavailable.

Definition at line 84 of file snmperrs.h.

#define SNMP_ERROR_SUCCESS   0

Success Status.

Definition at line 71 of file snmperrs.h.

#define SNMP_ERROR_TOO_BIG   1

Pdu encoding too big.

Definition at line 72 of file snmperrs.h.

#define SNMP_ERROR_UNDO_FAIL   15

Unable to undo.

Definition at line 86 of file snmperrs.h.

#define SNMP_ERROR_WRONG_ENCODING   9

Request Pdu has wrong encoding.

Definition at line 80 of file snmperrs.h.

#define SNMP_ERROR_WRONG_LENGTH   8

Request Pdu has inccorect length.

Definition at line 79 of file snmperrs.h.

#define SNMP_ERROR_WRONG_TYPE   7

Requested type was incorrect.

Definition at line 78 of file snmperrs.h.

#define SNMP_ERROR_WRONG_VALUE   10

Request Pdu has wrong value.

Definition at line 81 of file snmperrs.h.