#include "squid.h"
#include "cbdata.h"
#include "dns/forward.h"
#include "dns/LookupDetails.h"
#include "dns/rfc1035.h"
#include "event.h"
#include "fqdncache.h"
#include "helper.h"
#include "mgr/Registration.h"
#include "snmp_agent.h"
#include "SquidConfig.h"
#include "StatCounters.h"
#include "Store.h"
#include "util.h"
#include "snmp_core.h"
Go to the source code of this file.
Classes | |
class | fqdncache_entry |
struct | fqdncache_entry::Flags |
struct | _fqdn_cache_stats |
Macros | |
#define | FQDN_LOW_WATER 90 |
#define | FQDN_HIGH_WATER 95 |
Variables | |
static struct _fqdn_cache_stats | FqdncacheStats |
static dlink_list | lru_list |
static IDNSCB | fqdncacheHandleReply |
static hash_table * | fqdn_table = nullptr |
static long | fqdncache_low = 180 |
static long | fqdncache_high = 200 |
Function Documentation
◆ fqdncacheAddEntryFromHosts()
void fqdncacheAddEntryFromHosts | ( | char * | addr, |
SBufList & | hostnames | ||
) |
Adds a "static" entry from /etc/hosts.
- Parameters
-
addr FQDN name to be added. hostnames list of hostnames for the addr
Definition at line 636 of file fqdncache.cc.
References DBG_IMPORTANT, debugs, fqdncache_entry::flags, FQDN_MAX_NAMES, fqdncache_get(), fqdncacheAddEntry(), fqdncacheLockEntry(), fqdncacheRelease(), fqdncacheUnlockEntry(), fqdncache_entry::Flags::fromhosts, fqdncache_entry::locks, fqdncache_entry::name_count, fqdncache_entry::names, Tolower(), and xstrdup.
Referenced by parseEtcHosts().
Variable Documentation
◆ fqdncacheHandleReply
|
static |
Definition at line 122 of file fqdncache.cc.
Referenced by fqdncache_nbgethostbyaddr().