DPI RESPONSE Error Codes

In case of an error on an SNMP request like GET, GETNEXT, GETBULK, SET, COMMIT, or UNDO, the RESPONSE can have one of these currently defined error codes. They are defined in the snmp_dpi.h include file:

  #define SNMP_ERROR_noError               0
  #define SNMP_ERROR_tooBig                1
  #define SNMP_ERROR_noSuchName            2
  #define SNMP_ERROR_badValue              3
  #define SNMP_ERROR_readOnly              4
  #define SNMP_ERROR_genErr                5
  #define SNMP_ERROR_noAccess              6
  #define SNMP_ERROR_wrongType             7
  #define SNMP_ERROR_wrongLength           8
  #define SNMP_ERROR_wrongEncoding         9
  #define SNMP_ERROR_wrongValue           10
  #define SNMP_ERROR_noCreation           11
  #define SNMP_ERROR_inconsistentValue    12
  #define SNMP_ERROR_resourceUnavailable  13
  #define SNMP_ERROR_commitFailed         14
  #define SNMP_ERROR_undoFailed           15
  #define SNMP_ERROR_authorizationError   16
  #define SNMP_ERROR_notWritable          17
  #define SNMP_ERROR_inconsistentName     18

In case of an error on a DPI only request (OPEN, REGISTER, UNREGISTER, ARE_YOU_THERE), the RESPONSE can have one of these currently defined error codes. They are defined in the snmp_dpi.h include file:

  #define SNMP_ERROR_DPI_noError                        0
  #define SNMP_ERROR_DPI_otherError                   101
  #define SNMP_ERROR_DPI_notFound                     102
  #define SNMP_ERROR_DPI_alreadyRegistered            103
  #define SNMP_ERROR_DPI_higherPriorityRegistered     104
  #define SNMP_ERROR_DPI_mustOpenFirst                105
  #define SNMP_ERROR_DPI_notAuthorized                106
  #define SNMP_ERROR_DPI_viewSelectionNotSupported    107
  #define SNMP_ERROR_DPI_getBulkSelectionNotSupported 108
  #define SNMP_ERROR_DPI_duplicateSubAgentIdentifier  109
  #define SNMP_ERROR_DPI_invalidDisplayString         110
  #define SNMP_ERROR_DPI_characterSetSelectionNotSupported  111

These codes are used in the error_code parameter for the mkDPIresponse() function and in the error_code field in the snmp_dpi_resp_packet structure.

Related Information


[Back: DPI Packet Types]
[Next: DPI UNREGISTER Reason Codes]