/*
- * $Id: fqdncache.cc,v 1.153 2003/01/23 00:37:21 robertc Exp $
+ * $Id: fqdncache.cc,v 1.154 2003/02/13 20:47:53 wessels Exp $
*
* DEBUG: section 35 FQDN Cache
* AUTHOR: Harvest Derived
int hits;
int misses;
int negative_hits;
- int errors;
- int ghba_calls; /* # calls to blocking gethostbyaddr() */
} FqdncacheStats;
static dlink_list lru_list;
FqdncacheStats.negative_hits);
storeAppendPrintf(sentry, "FQDNcache Misses: %d\n",
FqdncacheStats.misses);
- storeAppendPrintf(sentry, "Blocking calls to gethostbyaddr(): %d\n",
- FqdncacheStats.ghba_calls);
storeAppendPrintf(sentry, "FQDN Cache Contents:\n\n");
storeAppendPrintf(sentry, "%-15.15s %3s %3s %3s %s\n",
"Address", "Flg", "TTL", "Cnt", "Hostnames");
break;
case FQDN_GHBN:
Answer = snmp_var_new_integer(Var->name, Var->name_length,
- FqdncacheStats.ghba_calls,
+ 0, /* deprecated */
SMI_COUNTER32);
break;
default:
/*
- * $Id: ipcache.cc,v 1.240 2003/01/23 00:37:22 robertc Exp $
+ * $Id: ipcache.cc,v 1.241 2003/02/13 20:47:53 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
int hits;
int misses;
int negative_hits;
- int errors;
- int ghbn_calls; /* # calls to blocking gethostbyname() */
- int release_locked;
} IpcacheStats;
static dlink_list lru_list;
if ((w = Config.dns_testname_list) == NULL)
return 1;
for (; w; w = w->next) {
- IpcacheStats.ghbn_calls++;
if (gethostbyname(w->key) != NULL)
return 1;
}
IpcacheStats.negative_hits);
storeAppendPrintf(sentry, "IPcache Misses: %d\n",
IpcacheStats.misses);
- storeAppendPrintf(sentry, "Blocking calls to gethostbyname(): %d\n",
- IpcacheStats.ghbn_calls);
- storeAppendPrintf(sentry, "Attempts to release locked entries: %d\n",
- IpcacheStats.release_locked);
storeAppendPrintf(sentry, "\n\n");
storeAppendPrintf(sentry, "IP Cache Contents:\n\n");
storeAppendPrintf(sentry, " %-29.29s %3s %6s %6s %1s\n",
break;
case IP_GHBN:
Answer = snmp_var_new_integer(Var->name, Var->name_length,
- IpcacheStats.ghbn_calls,
+ 0, /* deprecated */
SMI_COUNTER32);
break;
case IP_LOC:
Answer = snmp_var_new_integer(Var->name, Var->name_length,
- IpcacheStats.release_locked,
+ 0, /* deprecated */
SMI_COUNTER32);
break;
default: