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

Go to the source code of this file.

Classes

struct  enum_list
 
struct  snmp_mib_tree
 

Macros

#define TYPE_OTHER   0
 
#define TYPE_OBJID   1
 
#define TYPE_OCTETSTR   2
 
#define TYPE_INTEGER   3
 
#define TYPE_NETADDR   4
 
#define TYPE_IPADDR   5
 
#define TYPE_COUNTER   6
 
#define TYPE_GAUGE   7
 
#define TYPE_TIMETICKS   8
 
#define TYPE_OPAQUE   9
 
#define TYPE_NULL   10
 

Functions

void init_mib (char *)
 
int read_objid (char *, oid *, int *)
 
void print_objid (oid *, int)
 
void sprint_objid (char *, oid *, int)
 
void print_variable (oid *, int, struct variable_list *)
 
void sprint_variable (char *, oid *, int, struct variable_list *)
 
void sprint_value (char *, oid *, int, struct variable_list *)
 
void print_value (oid *, int, struct variable_list *)
 
void print_oid_nums (oid *, int)
 
struct snmp_mib_treeread_mib (char *)
 

Macro Definition Documentation

#define TYPE_COUNTER   6

Definition at line 68 of file parse.h.

Referenced by build_translation_table().

#define TYPE_GAUGE   7

Definition at line 69 of file parse.h.

Referenced by build_translation_table().

#define TYPE_INTEGER   3

Definition at line 65 of file parse.h.

Referenced by build_translation_table().

#define TYPE_IPADDR   5

Definition at line 67 of file parse.h.

Referenced by build_translation_table().

#define TYPE_NETADDR   4

Definition at line 66 of file parse.h.

#define TYPE_NULL   10

Definition at line 72 of file parse.h.

Referenced by build_translation_table().

#define TYPE_OBJID   1

Definition at line 63 of file parse.h.

Referenced by build_translation_table().

#define TYPE_OCTETSTR   2

Definition at line 64 of file parse.h.

Referenced by build_translation_table().

#define TYPE_OPAQUE   9

Definition at line 71 of file parse.h.

Referenced by build_translation_table().

#define TYPE_OTHER   0

Definition at line 62 of file parse.h.

Referenced by build_translation_table().

#define TYPE_TIMETICKS   8

Definition at line 70 of file parse.h.

Referenced by build_translation_table().

Function Documentation

void init_mib ( char *  )

Definition at line 97 of file mib.c.

References NULL, and read_mib().

void print_objid ( oid ,
int   
)

Definition at line 264 of file mib.c.

References buf, get_symbol(), Mib, and snmplib_debug().

void print_oid_nums ( oid ,
int   
)

Definition at line 329 of file mib.c.

References len.

void print_value ( oid ,
int  ,
struct variable_list  
)
void print_variable ( oid ,
int  ,
struct variable_list  
)
struct snmp_mib_tree* read_mib ( char *  )

Definition at line 1084 of file parse.c.

References build_tree(), fp, mbuf, NULL, p, parse(), snmplib_debug(), and xstrerr().

Referenced by init_mib().

int read_objid ( char *  ,
oid ,
int  
)

Definition at line 229 of file mib.c.

References find_rfc1066_mib(), i, Mib, NULL, parse_subtree(), RFC1066_MIB, and snmplib_debug().

void sprint_objid ( char *  ,
oid ,
int   
)

Definition at line 278 of file mib.c.

References get_symbol(), and Mib.

void sprint_value ( char *  ,
oid ,
int  ,
struct variable_list  
)
void sprint_variable ( char *  ,
oid ,
int  ,
struct variable_list  
)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors