snmp_vars.h File Reference
#include "asn1.h"
Include dependency graph for snmp_vars.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  variable_list
 

Macros

#define MAX_NAME_LEN   64 /* number of subid's in a objid */
 
#define SMI_INTEGER   ASN_INTEGER
 
#define SMI_STRING   ASN_OCTET_STR
 
#define SMI_OBJID   ASN_OBJECT_ID
 
#define SMI_NULLOBJ   ASN_NULL
 
#define SMI_IPADDRESS   (ASN_APPLICATION | 0) /* OCTET STRING, net byte order */
 
#define SMI_COUNTER32   (ASN_APPLICATION | 1) /* INTEGER */
 
#define SMI_GAUGE32   (ASN_APPLICATION | 2) /* INTEGER */
 
#define SMI_UNSIGNED32   SMI_GAUGE32
 
#define SMI_TIMETICKS   (ASN_APPLICATION | 3) /* INTEGER */
 
#define SMI_OPAQUE   (ASN_APPLICATION | 4) /* OCTET STRING */
 
#define SMI_COUNTER64   (ASN_APPLICATION | 6) /* INTEGER */
 
#define INETADDRESSTYPE_ENUMS
 
#define INETADDRESSTYPE_UNKNOWN   0
 
#define INETADDRESSTYPE_IPV4   1
 
#define INETADDRESSTYPE_IPV6   2
 
#define INETADDRESSTYPE_IPV4Z   3
 
#define INETADDRESSTYPE_IPV6Z   4
 
#define INETADDRESSTYPE_DNS   16
 
#define SMI_NOSUCHOBJECT   (ASN_CONTEXT | ASN_PRIMITIVE | 0x0) /* noSuchObject[0] */
 
#define SMI_NOSUCHINSTANCE   (ASN_CONTEXT | ASN_PRIMITIVE | 0x1) /* noSuchInstance[1] */
 
#define SMI_ENDOFMIBVIEW   (ASN_CONTEXT | ASN_PRIMITIVE | 0x2) /* endOfMibView[2] */
 

Typedefs

typedef struct variable variable
 
typedef struct variable_list variable_list
 

Functions

struct variable_listsnmp_var_new (oid *, int)
 
struct variable_listsnmp_var_new_integer (oid *, int, int, unsigned char)
 
struct variable_listsnmp_var_clone (struct variable_list *)
 
void snmp_var_free (struct variable_list *)
 
u_char * snmp_var_EncodeVarBind (u_char *, int *, struct variable_list *, int)
 
u_char * snmp_var_DecodeVarBind (u_char *, int *, struct variable_list **, int)
 

Macro Definition Documentation

#define INETADDRESSTYPE_DNS   16

Definition at line 97 of file snmp_vars.h.

#define INETADDRESSTYPE_ENUMS

Definition at line 90 of file snmp_vars.h.

#define INETADDRESSTYPE_IPV4   1

Definition at line 93 of file snmp_vars.h.

Referenced by addr2oid(), snmp_meshCtblFn(), and snmp_meshPtblFn().

#define INETADDRESSTYPE_IPV4Z   3

Definition at line 95 of file snmp_vars.h.

#define INETADDRESSTYPE_IPV6   2

Definition at line 94 of file snmp_vars.h.

Referenced by addr2oid(), snmp_meshCtblFn(), and snmp_meshPtblFn().

#define INETADDRESSTYPE_IPV6Z   4

Definition at line 96 of file snmp_vars.h.

#define INETADDRESSTYPE_UNKNOWN   0

Definition at line 92 of file snmp_vars.h.

#define MAX_NAME_LEN   64 /* number of subid's in a objid */

Definition at line 65 of file snmp_vars.h.

Referenced by snmp_pdu_decode(), and snmp_var_DecodeVarBind().

#define SMI_ENDOFMIBVIEW   (ASN_CONTEXT | ASN_PRIMITIVE | 0x2) /* endOfMibView[2] */

Definition at line 120 of file snmp_vars.h.

Referenced by snmp_var_DecodeVarBind(), and snmp_var_EncodeVarBind().

#define SMI_IPADDRESS   (ASN_APPLICATION | 0) /* OCTET STRING, net byte order */

Definition at line 75 of file snmp_vars.h.

Referenced by snmp_pdu_encode(), snmp_var_DecodeVarBind(), and snmp_var_EncodeVarBind().

#define SMI_NOSUCHINSTANCE   (ASN_CONTEXT | ASN_PRIMITIVE | 0x1) /* noSuchInstance[1] */

Definition at line 119 of file snmp_vars.h.

Referenced by snmp_var_DecodeVarBind(), and snmp_var_EncodeVarBind().

#define SMI_NOSUCHOBJECT   (ASN_CONTEXT | ASN_PRIMITIVE | 0x0) /* noSuchObject[0] */

Definition at line 118 of file snmp_vars.h.

Referenced by snmp_var_DecodeVarBind(), and snmp_var_EncodeVarBind().

#define SMI_NULLOBJ   ASN_NULL

Definition at line 74 of file snmp_vars.h.

Referenced by Snmp::Var::isNull().

#define SMI_OBJID   ASN_OBJECT_ID

Definition at line 73 of file snmp_vars.h.

Referenced by Snmp::Var::asObject(), and Snmp::Var::setObject().

#define SMI_OPAQUE   (ASN_APPLICATION | 4) /* OCTET STRING */

Definition at line 80 of file snmp_vars.h.

Referenced by snmp_var_DecodeVarBind(), and snmp_var_EncodeVarBind().

#define SMI_STRING   ASN_OCTET_STR

Definition at line 72 of file snmp_vars.h.

Referenced by Snmp::Var::asString(), and Snmp::Var::setString().

#define SMI_UNSIGNED32   SMI_GAUGE32

Definition at line 78 of file snmp_vars.h.

Typedef Documentation

typedef struct variable variable

Definition at line 121 of file snmp_vars.h.

typedef struct variable_list variable_list

Definition at line 122 of file snmp_vars.h.

Function Documentation

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors