From 0946cb09b5cee9e14846df17fc44ccbaf31a3d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 23 Jul 2010 15:32:47 +0300 Subject: auth: add manual page, and minor code changes basics of the helper module explained. --- squark-auth.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'squark-auth.c') diff --git a/squark-auth.c b/squark-auth.c index 84240c9..73f9e0f 100644 --- a/squark-auth.c +++ b/squark-auth.c @@ -1,6 +1,6 @@ /* squark-auth.c - Squid User Authentication and Rating Kit * An external acl helper for Squid which collects authentication - * information for IP-address from switches via SNMP. + * information about an IP-address from switches via SNMP. * * Copyright (C) 2010 Timo Teräs * All rights reserved. @@ -14,6 +14,8 @@ * - implement Q-BRIDGE-MIB query * - map vlan names to vlan index * - print some usage information + * - poll lldpStatsRemTablesLastChangeTime when doing switch update + * to figure out if lldp info is valid or not */ #include @@ -28,7 +30,7 @@ /* Compile time configurables */ #define SWITCH_HASH_SIZE 128 #define PORT_HASH_SIZE 128 -#define CACHE_TIME 30 /* seconds */ +#define CACHE_TIME 120 /* seconds */ /* Some helpers */ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -- cgit v1.2.3