summaryrefslogtreecommitdiffstats
path: root/squark-auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'squark-auth.c')
-rw-r--r--squark-auth.c6
1 files changed, 4 insertions, 2 deletions
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 <timo.teras@iki.fi>
* 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 <fcntl.h>
@@ -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]))