snmp_api_error.c File Reference
#include "squid.h"
#include "snmp_api_error.h"
Include dependency graph for snmp_api_error.c:

Go to the source code of this file.

Functions

void snmp_set_api_error (int x)
 
const char * snmp_api_error (int err)
 
int snmp_api_errno (void)
 
const char * api_errstring (int snmp_errnumber)
 

Variables

int snmp_errno = 0
 
static const char * api_errors [17]
 

Function Documentation

const char* api_errstring ( int  snmp_errnumber)

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  err)

Definition at line 76 of file snmp_api_error.c.

References api_errors, SNMPERR_GENERR, and SNMPERR_LAST.

Referenced by api_errstring().

Variable Documentation

const char* api_errors[17]
static
Initial value:
= {
"Unknown Error",
"Generic Error",
"Invalid local port",
"Unknown host",
"Unknown session",
"Too Long",
"Encoding ASN.1 Information",
"Decoding ASN.1 Information",
"PDU Translation error",
"OS Error",
"Invalid Textual OID",
"Unable to fix PDU",
"Unsupported SNMP Type",
"Unable to parse PDU",
"Packet Error",
"No Response From Host",
"Unknown Error"
}

Definition at line 46 of file snmp_api_error.c.

Referenced by snmp_api_error().

int snmp_errno = 0

Definition at line 44 of file snmp_api_error.c.

Referenced by snmp_api_errno(), and snmp_set_api_error().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors