mib.c File Reference
#include "squid.h"
#include "asn1.h"
#include "snmp.h"
#include "parse.h"
#include "snmp_api.h"
#include "snmp_impl.h"
#include "snmp_pdu.h"
#include "snmp_session.h"
#include "snmp_vars.h"
#include "util.h"
Include dependency graph for mib.c:

Go to the source code of this file.

Functions

static struct snmp_mib_treeget_symbol (oid *objid, int objidlen, struct snmp_mib_tree *subtree, char *buf)
 
void init_mib (char *file)
 
static struct snmp_mib_treefind_rfc1066_mib (struct snmp_mib_tree *root)
 
static int lc_cmp (const char *s1, const char *s2)
 
static int parse_subtree (struct snmp_mib_tree *subtree, char *input, oid *output, int *out_len)
 
int read_objid (char *input, oid *output, int *out_len)
 
void print_objid (oid *objid, int objidlen)
 
void sprint_objid (char *buf, oid *objid, int objidlen)
 
void print_oid_nums (oid *O, int len)
 

Variables

oid RFC1066_MIB [] = {1, 3, 6, 1, 2, 1}
 
unsigned char RFC1066_MIB_text [] = ".iso.org.dod.internet.mgmt.mib"
 
struct snmp_mib_treeMib
 

Function Documentation

static struct snmp_mib_tree* find_rfc1066_mib ( struct snmp_mib_tree root)
static

Definition at line 107 of file mib.c.

References snmp_mib_tree::child_list, len, snmp_mib_tree::next_peer, NULL, RFC1066_MIB, and snmp_mib_tree::subid.

Referenced by read_objid().

static struct snmp_mib_tree * get_symbol ( oid objid,
int  objidlen,
struct snmp_mib_tree subtree,
char *  buf 
)
static
void init_mib ( char *  file)

Definition at line 97 of file mib.c.

References NULL, and read_mib().

static int lc_cmp ( const char *  s1,
const char *  s2 
)
static

Definition at line 126 of file mib.c.

References s1, xisupper, and xtolower.

Referenced by parse_subtree().

static int parse_subtree ( struct snmp_mib_tree subtree,
char *  input,
oid output,
int out_len 
)
static
void print_objid ( oid objid,
int  objidlen 
)

Definition at line 264 of file mib.c.

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

void print_oid_nums ( oid O,
int  len 
)

Definition at line 329 of file mib.c.

References len.

int read_objid ( char *  input,
oid output,
int out_len 
)

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 *  buf,
oid objid,
int  objidlen 
)

Definition at line 278 of file mib.c.

References get_symbol(), and Mib.

Variable Documentation

struct snmp_mib_tree* Mib

Definition at line 94 of file mib.c.

Referenced by print_objid(), read_objid(), and sprint_objid().

oid RFC1066_MIB[] = {1, 3, 6, 1, 2, 1}

Definition at line 92 of file mib.c.

Referenced by find_rfc1066_mib(), and read_objid().

unsigned char RFC1066_MIB_text[] = ".iso.org.dod.internet.mgmt.mib"

Definition at line 93 of file mib.c.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors