|
Squid Web Cache master
|
#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 <optional>Go to the source code of this file.
Classes | |
| struct | _mib_tree_entry |
| class | Acl::SnmpCommunityCheck |
| an "snmp_community" ACL More... | |
Namespaces | |
| namespace | 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_pdu * | snmpAgentResponse (struct snmp_pdu *PDU) |
| AggrType | snmpAggrType (oid *Current, snint CurrentLen) |
| const char * | snmpDebugOid (const oid *, snint Len, MemBuf &outbuf) |
| void | addr2oid (Ip::Address &addr, oid *Dest) |
| std::optional< Ip::Address > | oid2addr (const oid *, size_t) |
Variables | |
| Comm::ConnectionPointer | snmpOutgoingConn |
| PF | snmpHandleUdp |
| #define MAX_PROTOSTAT 5 |
Definition at line 26 of file snmp_core.h.
| #define SNMP_REQUEST_SIZE 4096 |
Definition at line 25 of file snmp_core.h.
| typedef oid *() instance_Fn(oid *name, snint *len, mib_tree_entry *current, oid_ParseFn **Fn) |
Definition at line 30 of file snmp_core.h.
| typedef struct _mib_tree_entry mib_tree_entry |
Definition at line 29 of file snmp_core.h.
| typedef variable_list *() oid_ParseFn(variable_list *, snint *) |
Definition at line 28 of file snmp_core.h.
| enum AggrType |
| Enumerator | |
|---|---|
| atNone | |
| atSum | |
| atAverage | |
| atMax | |
| atMin | |
Definition at line 31 of file snmp_core.h.
| void addr2oid | ( | Ip::Address & | addr, |
| oid * | Dest | ||
| ) |
Definition at line 1076 of file snmp_core.cc.
References debugs, Ip::Address::getInAddr(), INETADDRESSTYPE_IPV4, INETADDRESSTYPE_IPV6, Ip::Address::isIPv6(), size, and snmpDebugOid().
Referenced by client_Inst().
| std::optional< Ip::Address > oid2addr | ( | const oid * | id, |
| size_t | size | ||
| ) |
Parses raw OID suffix of a given size as an IP address.
Definition at line 1108 of file snmp_core.cc.
References debugs, size, and snmpDebugOid().
Referenced by client_Inst(), and snmp_meshCtblFn().
Definition at line 471 of file snmp_core.cc.
References snmp_pdu::command, debugs, snmp_pdu::errindex, snmp_pdu::errstat, variable_list::name, variable_list::name_length, variable_list::next_variable, snmp_pdu::reqid, SNMP_ERR_NOERROR, SNMP_ERR_NOSUCHNAME, snmp_pdu_create(), SNMP_PDU_GET, SNMP_PDU_GETNEXT, SNMP_PDU_RESPONSE, snmp_var_free(), snmp_var_new(), snmpTreeGet(), snmpTreeNext(), snmp_pdu::variables, and xfree.
Referenced by Snmp::SendResponse(), and snmpConstructReponse().
Definition at line 584 of file snmp_core.cc.
References _mib_tree_entry::aggrType, atNone, debugs, mib_tree_head, MYNAME, _mib_tree_entry::name, and snmpTreeEntry().
Referenced by Snmp::Pdu::aggregate(), and Snmp::Pdu::fixAggregate().
Definition at line 1050 of file snmp_core.cc.
References MemBuf::append(), MemBuf::content(), and MemBuf::reset().
Referenced by addr2oid(), oid2addr(), snmp_meshCtblFn(), snmp_netDnsFn(), snmp_netFqdnFn(), snmp_netIpFn(), snmp_sysFn(), snmpAddNode(), snmpTreeGet(), and snmpTreeNext().
|
extern |
Referenced by snmpHandleUdp(), and snmpPortOpened().
|
extern |
Definition at line 40 of file snmp_core.cc.
Referenced by snmpClosePorts(), snmpOpenPorts(), and snmpPortOpened().