4 * DEBUG: section 49 SNMP Interface
8 #ifndef SQUID_SNMP_CORE_H
9 #define SQUID_SNMP_CORE_H
11 #include "cache_snmp.h"
12 #include "comm/forward.h"
14 #define SNMP_REQUEST_SIZE 4096
15 #define MAX_PROTOSTAT 5
17 typedef struct _mib_tree_entry mib_tree_entry
;
18 typedef oid
*(instance_Fn
) (oid
* name
, snint
* len
, mib_tree_entry
* current
, oid_ParseFn
** Fn
);
19 typedef enum {atNone
= 0, atSum
, atAverage
, atMax
, atMin
} AggrType
;
21 struct _mib_tree_entry
{
24 oid_ParseFn
*parsefunction
;
25 instance_Fn
*instancefunction
;
28 struct _mib_tree_entry
**leaves
;
30 struct _mib_tree_entry
*parent
;
34 extern struct snmp_pdu
* snmpAgentResponse(struct snmp_pdu
* PDU
);
35 extern AggrType
snmpAggrType(oid
* Current
, snint CurrentLen
);
37 extern Comm::ConnectionPointer snmpOutgoingConn
;
39 #endif /* SQUID_SNMP_CORE_H */