#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"
![](mib_8c__incl.png)
Go to the source code of this file.
Functions | |
static struct snmp_mib_tree * | get_symbol (oid *objid, int objidlen, struct snmp_mib_tree *subtree, char *buf) |
void | init_mib (char *file) |
static struct snmp_mib_tree * | find_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_tree * | Mib |
Function Documentation
◆ find_rfc1066_mib()
|
static |
Definition at line 107 of file mib.c.
References snmp_mib_tree::child_list, snmp_mib_tree::next_peer, NULL, RFC1066_MIB, and snmp_mib_tree::subid.
Referenced by read_objid().
◆ get_symbol()
|
static |
Definition at line 285 of file mib.c.
References snmp_mib_tree::child_list, snmp_mib_tree::label, snmp_mib_tree::next_peer, NULL, and snmp_mib_tree::subid.
Referenced by print_objid(), and sprint_objid().
◆ init_mib()
void init_mib | ( | char * | file | ) |
Definition at line 97 of file mib.c.
References Mib, NULL, and read_mib().
◆ lc_cmp()
|
static |
◆ parse_subtree()
|
static |
Definition at line 153 of file mib.c.
References snmp_mib_tree::child_list, snmp_mib_tree::label, lc_cmp(), MAX_SUBID, snmp_mib_tree::next_peer, NULL, snmplib_debug(), snmp_mib_tree::subid, and xisdigit.
Referenced by read_objid().
◆ print_objid()
- Parameters
-
objidlen number of subidentifiers
Definition at line 263 of file mib.c.
References get_symbol(), Mib, and snmplib_debug().
◆ print_oid_nums()
◆ read_objid()
- Parameters
-
out_len number of subid's in "output"
Definition at line 230 of file mib.c.
References find_rfc1066_mib(), Mib, NULL, parse_subtree(), RFC1066_MIB, and snmplib_debug().
◆ sprint_objid()
- Parameters
-
objidlen number of subidentifiers
Definition at line 276 of file mib.c.
References get_symbol(), and Mib.
Variable Documentation
◆ Mib
struct snmp_mib_tree* Mib |
Definition at line 94 of file mib.c.
Referenced by init_mib(), print_objid(), read_objid(), and sprint_objid().
◆ RFC1066_MIB
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().
◆ RFC1066_MIB_text
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products