2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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.
9 /* DEBUG: section 35 FQDN Cache */
11 #ifndef SQUID_SRC_FQDNCACHE_H
12 #define SQUID_SRC_FQDNCACHE_H
14 #include "ip/Address.h"
15 #include "sbuf/forward.h"
22 /// whether to do reverse DNS lookups for source IPs of accepted connections
23 extern bool ResolveClientAddressesAsap
;
26 typedef void FQDNH(const char *, const Dns::LookupDetails
&details
, void *);
28 void fqdncache_init(void);
29 void fqdnStats(StoreEntry
*);
30 void fqdncache_restart(void);
31 void fqdncache_purgelru(void *);
32 void fqdncacheAddEntryFromHosts(char *addr
, SBufList
&hostnames
);
34 const char *fqdncache_gethostbyaddr(const Ip::Address
&, int flags
);
35 void fqdncache_nbgethostbyaddr(const Ip::Address
&, FQDNH
*, void *);
37 #endif /* SQUID_SRC_FQDNCACHE_H */