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

◆ INETADDRESSTYPE_DNS

#define INETADDRESSTYPE_DNS   16

Definition at line 97 of file snmp_vars.h.

◆ INETADDRESSTYPE_ENUMS

#define INETADDRESSTYPE_ENUMS

Definition at line 90 of file snmp_vars.h.

◆ INETADDRESSTYPE_IPV4

#define INETADDRESSTYPE_IPV4   1

Definition at line 93 of file snmp_vars.h.

◆ INETADDRESSTYPE_IPV4Z

#define INETADDRESSTYPE_IPV4Z   3

Definition at line 95 of file snmp_vars.h.

◆ INETADDRESSTYPE_IPV6

#define INETADDRESSTYPE_IPV6   2

Definition at line 94 of file snmp_vars.h.

◆ INETADDRESSTYPE_IPV6Z

#define INETADDRESSTYPE_IPV6Z   4

Definition at line 96 of file snmp_vars.h.

◆ INETADDRESSTYPE_UNKNOWN

#define INETADDRESSTYPE_UNKNOWN   0

Definition at line 92 of file snmp_vars.h.

◆ MAX_NAME_LEN

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

Definition at line 65 of file snmp_vars.h.

◆ SMI_COUNTER32

#define SMI_COUNTER32   (ASN_APPLICATION | 1) /* INTEGER */

Definition at line 76 of file snmp_vars.h.

◆ SMI_COUNTER64

#define SMI_COUNTER64   (ASN_APPLICATION | 6) /* INTEGER */

Definition at line 81 of file snmp_vars.h.

◆ SMI_ENDOFMIBVIEW

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

Definition at line 120 of file snmp_vars.h.

◆ SMI_GAUGE32

#define SMI_GAUGE32   (ASN_APPLICATION | 2) /* INTEGER */

Definition at line 77 of file snmp_vars.h.

◆ SMI_INTEGER

#define SMI_INTEGER   ASN_INTEGER

Definition at line 71 of file snmp_vars.h.

◆ SMI_IPADDRESS

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

Definition at line 75 of file snmp_vars.h.

◆ SMI_NOSUCHINSTANCE

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

Definition at line 119 of file snmp_vars.h.

◆ SMI_NOSUCHOBJECT

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

Definition at line 118 of file snmp_vars.h.

◆ SMI_NULLOBJ

#define SMI_NULLOBJ   ASN_NULL

Definition at line 74 of file snmp_vars.h.

◆ SMI_OBJID

#define SMI_OBJID   ASN_OBJECT_ID

Definition at line 73 of file snmp_vars.h.

◆ SMI_OPAQUE

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

Definition at line 80 of file snmp_vars.h.

◆ SMI_STRING

#define SMI_STRING   ASN_OCTET_STR

Definition at line 72 of file snmp_vars.h.

◆ SMI_TIMETICKS

#define SMI_TIMETICKS   (ASN_APPLICATION | 3) /* INTEGER */

Definition at line 79 of file snmp_vars.h.

◆ SMI_UNSIGNED32

#define SMI_UNSIGNED32   SMI_GAUGE32

Definition at line 78 of file snmp_vars.h.

Typedef Documentation

◆ variable

typedef struct variable variable

Definition at line 121 of file snmp_vars.h.

◆ variable_list

typedef struct variable_list variable_list

Definition at line 122 of file snmp_vars.h.

Function Documentation

◆ snmp_var_clone()

◆ snmp_var_DecodeVarBind()

◆ snmp_var_EncodeVarBind()

◆ snmp_var_free()

void snmp_var_free ( struct variable_list Ptr)

◆ snmp_var_new()

◆ snmp_var_new_integer()

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors