/*
- * $Id: globals.h,v 1.42 1998/03/07 23:43:07 rousskov Exp $
+ * $Id: globals.h,v 1.43 1998/03/16 20:30:03 wessels Exp $
*/
extern FILE *debug_log; /* NULL */
extern char *err_type_str[];
extern char *icp_opcode_str[];
extern char *swap_log_op_str[];
-extern struct radix_node_head *AS_tree_head;
extern double request_failure_ratio; /* 0.0 */
extern int store_hash_buckets; /* 0 */
extern hash_table *store_table; /* NULL */
#ifdef HAVE_SYSLOG
extern int _db_level;
#endif
-
-#if SQUID_SNMP
-extern struct tree *Mib;
-#endif
{
communityEntry *cp;
for (cp = Config.Snmp.communities; cp != NULL; cp = cp->next)
- if (!strcmp((char *)rq->community, cp->name) && cp->acls) {
+ if (!strcmp((char *) rq->community, cp->name) && cp->acls) {
rq->acl_checklist = aclChecklistCreate(cp->acls,
NULL, rq->from.sin_addr, NULL, NULL);
aclNBCheck(rq->acl_checklist, snmpAclCheckDone, rq);
debug(49, 5) ("snmpAclCheckDone: checking.\n");
/* access check for each variable */
- if (!community_check((char *)Community, VarPtr->name, VarPtr->name_length)) {
+ if (!community_check((char *) Community, VarPtr->name, VarPtr->name_length)) {
debug(49, 5) ("snmpAclCheckDone: failed on community_check.\n");
snmp_agent_parse_done(0, rq);
return;
}
}
Session->community = Community;
- Session->community_len = strlen((char *)Community);
+ Session->community_len = strlen((char *) Community);
RespPDU = snmp_agent_response(PDU);
snmp_free_pdu(PDU);
if (RespPDU == NULL) {
/*
- * $Id: squid.h,v 1.163 1998/03/08 08:43:16 rousskov Exp $
+ * $Id: squid.h,v 1.164 1998/03/16 20:30:05 wessels Exp $
*
* AUTHOR: Duane Wessels
*
#define calloc +
#define sprintf +
#define strdup +
+
+#if SQUID_SNMP
+extern struct snmp_mib_tree *Mib;
+#endif
#endif /* SQUID_H */