int client_info_sz;
-static HashID client_table;
+static HashID client_table = 0;
static ClientInfo *clientdbAdd _PARAMS((struct in_addr addr));
void
clientdbInit(void)
{
+ if (client_table)
+ return;
client_table = hash_create((int (*)_PARAMS((const char *, const char *))) strcmp,
229,
hash_string);
/*
- * $Id: fqdncache.cc,v 1.39 1996/11/22 08:38:50 wessels Exp $
+ * $Id: fqdncache.cc,v 1.40 1996/11/24 02:55:56 wessels Exp $
*
* DEBUG: section 35 FQDN Cache
* AUTHOR: Harvest Derived
void
fqdncache_init(void)
{
+ if (fqdn_table)
+ return;
debug(35, 3, "Initializing FQDN Cache...\n");
memset(&FqdncacheStats, '\0', sizeof(FqdncacheStats));
/* small hash table */
#if USE_ICMP
-static HashID addr_table;
-static HashID host_table;
+static HashID addr_table = 0;
+static HashID host_table = 0;
static struct in_addr networkFromInaddr _PARAMS((struct in_addr a));
static void netdbRelease _PARAMS((netdbEntry * n));
netdbInit(void)
{
#if USE_ICMP
+ if (addr_table)
+ return;
addr_table = hash_create((int (*)_PARAMS((const char *, const char *))) strcmp, 229, hash_string);
host_table = hash_create((int (*)_PARAMS((const char *, const char *))) strcmp, 467, hash_string);
#endif