ipcache.h File Reference
#include "base/CbcPointer.h"
#include "dns/forward.h"
#include "ip/Address.h"
#include <iosfwd>
#include <vector>
Include dependency graph for ipcache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  Dns::CachedIp
 a CachedIps element More...
class  Dns::CachedIps
class  Dns::IpsIterator
 Iterates over any (good and/or bad) IPs in CachedIps, in unspecified order. More...
class  Dns::GoodIpsIterator
 Iterates over good IPs in CachedIps, starting at the so called current one. More...
class  Dns::IpsSelector< Iterator >
class  Dns::IpReceiver
 an interface for receiving IP::Addresses from nbgethostbyname() More...


namespace  Dns
 generic DNS API


typedef Dns::CachedIps ipcache_addrs
 deprecated alias More...
typedef void IPH(const ipcache_addrs *, const Dns::LookupDetails &details, void *)


void Dns::nbgethostbyname (const char *name, const CbcPointer< IpReceiver > &receiver)
 initiate an (often) asynchronous DNS lookup; the receiver gets the results More...
std::ostream & Dns::operator<< (std::ostream &os, const CachedIps &ips)
void ipcache_purgelru (void *)
void ipcache_nbgethostbyname (const char *name, IPH *handler, void *handlerData)
const ipcache_addrsipcache_gethostbyname (const char *, int flags)
void ipcacheInvalidate (const char *)
void ipcacheInvalidateNegative (const char *)
void ipcache_init (void)
void ipcacheMarkBadAddr (const char *name, const Ip::Address &)
void ipcacheMarkGoodAddr (const char *name, const Ip::Address &)
void ipcache_restart (void)
int ipcacheAddEntryFromHosts (const char *name, const char *ipaddr)

Typedef Documentation

◆ ipcache_addrs

Definition at line 225 of file ipcache.h.


typedef void IPH(const ipcache_addrs *, const Dns::LookupDetails &details, void *)

Definition at line 227 of file ipcache.h.

Function Documentation

◆ ipcacheMarkBadAddr()

void ipcacheMarkBadAddr ( const char *  name,
const Ip::Address addr 

Marks the given address as BAD. Does nothing if the domain name does not exist.

namedomain name to have an IP marked bad
addrspecific address to be marked bad

Definition at line 1066 of file ipcache.cc.

References ipcache_get().

Referenced by Comm::ConnOpener::sendAnswer().






Web Site Translations