fqdncache.h File Reference
#include "ip/Address.h"
#include "sbuf/forward.h"
Include dependency graph for fqdncache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Dns
 generic DNS API
 

Typedefs

typedef void FQDNH (const char *, const Dns::LookupDetails &details, void *)
 

Functions

void fqdncache_init (void)
 
void fqdnStats (StoreEntry *)
 
void fqdncacheFreeMemory (void)
 
void fqdncache_restart (void)
 
void fqdncache_purgelru (void *)
 
void fqdncacheAddEntryFromHosts (char *addr, SBufList &hostnames)
 
const char * fqdncache_gethostbyaddr (const Ip::Address &, int flags)
 
void fqdncache_nbgethostbyaddr (const Ip::Address &, FQDNH *, void *)
 

Typedef Documentation

typedef void FQDNH(const char *, const Dns::LookupDetails &details, void *)

Definition at line 23 of file fqdncache.h.

Function Documentation

void fqdncacheAddEntryFromHosts ( char *  addr,
SBufList hostnames 
)

Adds a "static" entry from /etc/hosts.

Parameters
addrFQDN name to be added.
hostnameslist of hostnames for the addr

Definition at line 651 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, NULL, Tolower(), and xstrdup.

Referenced by parseEtcHosts().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors