fqdncache.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 /* DEBUG: section 35 FQDN Cache */
10 
11 #ifndef SQUID_SRC_FQDNCACHE_H
12 #define SQUID_SRC_FQDNCACHE_H
13 
14 #include "dns/forward.h"
15 #include "ip/forward.h"
16 #include "sbuf/forward.h"
17 #include "store/forward.h"
18 
19 namespace Dns
20 {
22 extern bool ResolveClientAddressesAsap;
23 }
24 
25 using FQDNH = void (const char *, const Dns::LookupDetails &, void *);
26 
27 void fqdncache_init();
28 void fqdnStats(StoreEntry *);
29 void fqdncache_restart();
30 void fqdncache_purgelru(void *);
31 void fqdncacheAddEntryFromHosts(char *addr, SBufList &hostnames);
32 
33 const char *fqdncache_gethostbyaddr(const Ip::Address &, int flags);
34 void fqdncache_nbgethostbyaddr(const Ip::Address &, FQDNH *, void *);
35 
36 #endif /* SQUID_SRC_FQDNCACHE_H */
37 
void fqdnStats(StoreEntry *)
Definition: fqdncache.cc:530
std::list< SBuf > SBufList
Definition: forward.h:22
void fqdncache_init()
Definition: fqdncache.cc:685
bool ResolveClientAddressesAsap
whether to do reverse DNS lookups for source IPs of accepted connections
Definition: fqdncache.cc:30
const char * fqdncache_gethostbyaddr(const Ip::Address &, int flags)
Definition: fqdncache.cc:481
generic DNS API
Definition: forward.h:20
void fqdncache_purgelru(void *)
Definition: fqdncache.cc:200
encapsulates DNS lookup results
Definition: LookupDetails.h:22
void fqdncache_nbgethostbyaddr(const Ip::Address &, FQDNH *, void *)
Definition: fqdncache.cc:414
void(const char *, const Dns::LookupDetails &, void *) FQDNH
Definition: fqdncache.h:25
void fqdncache_restart()
Definition: fqdncache.cc:620
void fqdncacheAddEntryFromHosts(char *addr, SBufList &hostnames)
Definition: fqdncache.cc:636

 

Introduction

Documentation

Support

Miscellaneous