snmp_api_error.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SNMPERR_GENERR   -1
 
#define SNMPERR_BAD_LOCPORT   -2 /* local port was already in use */
 
#define SNMPERR_BAD_ADDRESS   -3
 
#define SNMPERR_BAD_SESSION   -4
 
#define SNMPERR_TOO_LONG   -5 /* data too long for provided buffer */
 
#define SNMPERR_ASN_ENCODE   -6
 
#define SNMPERR_ASN_DECODE   -7
 
#define SNMPERR_PDU_TRANSLATION   -8
 
#define SNMPERR_OS_ERR   -9
 
#define SNMPERR_INVALID_TXTOID   -10
 
#define SNMPERR_UNABLE_TO_FIX   -11
 
#define SNMPERR_UNSUPPORTED_TYPE   -12
 
#define SNMPERR_PDU_PARSE   -13
 
#define SNMPERR_PACKET_ERR   -14
 
#define SNMPERR_NO_RESPONSE   -15
 
#define SNMPERR_LAST   -16 /* Last error message */
 

Functions

const char * snmp_api_error (int)
 
int snmp_api_errno (void)
 
const char * api_errstring (int)
 
void snmp_set_api_error (int)
 

Macro Definition Documentation

#define SNMPERR_ASN_ENCODE   -6
#define SNMPERR_BAD_ADDRESS   -3

Definition at line 41 of file snmp_api_error.h.

#define SNMPERR_BAD_LOCPORT   -2 /* local port was already in use */

Definition at line 40 of file snmp_api_error.h.

#define SNMPERR_BAD_SESSION   -4

Definition at line 42 of file snmp_api_error.h.

#define SNMPERR_GENERR   -1

Definition at line 39 of file snmp_api_error.h.

Referenced by snmp_api_error().

#define SNMPERR_INVALID_TXTOID   -10

Definition at line 49 of file snmp_api_error.h.

#define SNMPERR_LAST   -16 /* Last error message */

Definition at line 57 of file snmp_api_error.h.

Referenced by snmp_api_error().

#define SNMPERR_NO_RESPONSE   -15

Definition at line 55 of file snmp_api_error.h.

#define SNMPERR_OS_ERR   -9
#define SNMPERR_PACKET_ERR   -14

Definition at line 54 of file snmp_api_error.h.

#define SNMPERR_PDU_PARSE   -13

Definition at line 53 of file snmp_api_error.h.

Referenced by snmp_var_DecodeVarBind().

#define SNMPERR_PDU_TRANSLATION   -8

Definition at line 47 of file snmp_api_error.h.

Referenced by snmp_coexist_V2toV1().

#define SNMPERR_TOO_LONG   -5 /* data too long for provided buffer */

Definition at line 43 of file snmp_api_error.h.

#define SNMPERR_UNABLE_TO_FIX   -11

Definition at line 51 of file snmp_api_error.h.

Referenced by snmp_fix_pdu().

#define SNMPERR_UNSUPPORTED_TYPE   -12

Definition at line 52 of file snmp_api_error.h.

Referenced by snmp_var_DecodeVarBind(), and snmp_var_EncodeVarBind().

Function Documentation

const char* api_errstring ( int  )

Definition at line 93 of file snmp_api_error.c.

References snmp_api_error().

int snmp_api_errno ( void  )

Definition at line 87 of file snmp_api_error.c.

References snmp_errno.

const char* snmp_api_error ( int  )

Definition at line 76 of file snmp_api_error.c.

References api_errors, SNMPERR_GENERR, and SNMPERR_LAST.

Referenced by api_errstring().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors