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.
Classes | |
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... | |
Namespaces | |
namespace | Dns |
generic DNS API | |
Typedefs | |
typedef Dns::CachedIps | ipcache_addrs |
deprecated alias More... | |
typedef void | IPH(const ipcache_addrs *, const Dns::LookupDetails &details, void *) |
Functions | |
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_addrs * | ipcache_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
typedef Dns::CachedIps ipcache_addrs |
◆ IPH
typedef void IPH(const ipcache_addrs *, const Dns::LookupDetails &details, void *) |
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.
- Parameters
-
name domain name to have an IP marked bad addr specific address to be marked bad
Definition at line 1066 of file ipcache.cc.
References ipcache_get().
Referenced by Comm::ConnOpener::sendAnswer().