snmp_core.h File Reference
#include "acl/Data.h"
#include "acl/ParameterizedNode.h"
#include "cache_snmp.h"
#include "comm/forward.h"
#include "ip/forward.h"
#include "snmp_vars.h"
Include dependency graph for snmp_core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _mib_tree_entry
 
class  Acl::SnmpCommunityCheck
 an "snmp_community" ACL More...
 

Namespaces

 Acl
 

Macros

#define SNMP_REQUEST_SIZE   4096
 
#define MAX_PROTOSTAT   5
 

Typedefs

typedef variable_list *() oid_ParseFn(variable_list *, snint *)
 
typedef struct _mib_tree_entry mib_tree_entry
 
typedef oid *() instance_Fn(oid *name, snint *len, mib_tree_entry *current, oid_ParseFn **Fn)
 

Enumerations

enum  AggrType {
  atNone = 0,
  atSum,
  atAverage,
  atMax,
  atMin
}
 

Functions

struct snmp_pdusnmpAgentResponse (struct snmp_pdu *PDU)
 
AggrType snmpAggrType (oid *Current, snint CurrentLen)
 
const char * snmpDebugOid (oid *Name, snint Len, MemBuf &outbuf)
 
void addr2oid (Ip::Address &addr, oid *Dest)
 
void oid2addr (oid *Dest, Ip::Address &addr, u_int code)
 

Variables

Comm::ConnectionPointer snmpOutgoingConn
 
PF snmpHandleUdp
 

Macro Definition Documentation

◆ MAX_PROTOSTAT

#define MAX_PROTOSTAT   5

Definition at line 24 of file snmp_core.h.

◆ SNMP_REQUEST_SIZE

#define SNMP_REQUEST_SIZE   4096

Definition at line 23 of file snmp_core.h.

Typedef Documentation

◆ instance_Fn

typedef oid*() instance_Fn(oid *name, snint *len, mib_tree_entry *current, oid_ParseFn **Fn)

Definition at line 28 of file snmp_core.h.

◆ mib_tree_entry

Definition at line 27 of file snmp_core.h.

◆ oid_ParseFn

typedef variable_list*() oid_ParseFn(variable_list *, snint *)

Definition at line 26 of file snmp_core.h.

Enumeration Type Documentation

◆ AggrType

enum AggrType
Enumerator
atNone 
atSum 
atAverage 
atMax 
atMin 

Definition at line 29 of file snmp_core.h.

Function Documentation

◆ addr2oid()

void addr2oid ( Ip::Address addr,
oid Dest 
)

◆ oid2addr()

void oid2addr ( oid Dest,
Ip::Address addr,
u_int  code 
)

Definition at line 1124 of file snmp_core.cc.

References debugs, size, and snmpDebugOid().

Referenced by client_Inst(), and snmp_meshCtblFn().

◆ snmpAgentResponse()

◆ snmpAggrType()

AggrType snmpAggrType ( oid Current,
snint  CurrentLen 
)

◆ snmpDebugOid()

const char* snmpDebugOid ( oid Name,
snint  Len,
MemBuf outbuf 
)

Variable Documentation

◆ snmpHandleUdp

PF snmpHandleUdp

◆ snmpOutgoingConn

Comm::ConnectionPointer snmpOutgoingConn

Definition at line 40 of file snmp_core.cc.

Referenced by snmpClosePorts(), snmpOpenPorts(), and snmpPortOpened().

 

Introduction

Documentation

Support

Miscellaneous