]>
Commit | Line | Data |
---|---|---|
fc54b8d2 | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
fc54b8d2 | 3 | * |
bbc27441 AJ |
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. | |
fc54b8d2 FC |
7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: section 35 FQDN Cache */ |
10 | ||
fc54b8d2 FC |
11 | #ifndef SQUID_FQDNCACHE_H_ |
12 | #define SQUID_FQDNCACHE_H_ | |
13 | ||
14 | #include "ip/Address.h" | |
1bff41b7 | 15 | #include "sbuf/forward.h" |
fc54b8d2 FC |
16 | |
17 | class StoreEntry; | |
23032e75 FC |
18 | namespace Dns |
19 | { | |
20 | class LookupDetails; | |
a8c7a110 AR |
21 | |
22 | /// whether to do reverse DNS lookups for source IPs of accepted connections | |
23 | extern bool ResolveClientAddressesAsap; | |
23032e75 FC |
24 | } |
25 | ||
26 | typedef void FQDNH(const char *, const Dns::LookupDetails &details, void *); | |
fc54b8d2 | 27 | |
8a648e8d | 28 | void fqdncache_init(void); |
fc54b8d2 | 29 | void fqdnStats(StoreEntry *); |
8a648e8d FC |
30 | void fqdncache_restart(void); |
31 | void fqdncache_purgelru(void *); | |
1bff41b7 | 32 | void fqdncacheAddEntryFromHosts(char *addr, SBufList &hostnames); |
fc54b8d2 | 33 | |
8a648e8d | 34 | const char *fqdncache_gethostbyaddr(const Ip::Address &, int flags); |
8a648e8d | 35 | void fqdncache_nbgethostbyaddr(const Ip::Address &, FQDNH *, void *); |
fc54b8d2 | 36 | |
fc54b8d2 | 37 | #endif /* SQUID_FQDNCACHE_H_ */ |
f53969cc | 38 |