]> git.ipfire.org Git - thirdparty/squid.git/blame - src/fqdncache.h
CI: Remove unnecessary test-functionality test wrappers (#1393)
[thirdparty/squid.git] / src / fqdncache.h
CommitLineData
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
17class StoreEntry;
23032e75
FC
18namespace Dns
19{
20class LookupDetails;
a8c7a110
AR
21
22/// whether to do reverse DNS lookups for source IPs of accepted connections
23extern bool ResolveClientAddressesAsap;
23032e75
FC
24}
25
26typedef void FQDNH(const char *, const Dns::LookupDetails &details, void *);
fc54b8d2 27
8a648e8d 28void fqdncache_init(void);
fc54b8d2 29void fqdnStats(StoreEntry *);
8a648e8d
FC
30void fqdncache_restart(void);
31void fqdncache_purgelru(void *);
1bff41b7 32void fqdncacheAddEntryFromHosts(char *addr, SBufList &hostnames);
fc54b8d2 33
8a648e8d 34const char *fqdncache_gethostbyaddr(const Ip::Address &, int flags);
8a648e8d 35void fqdncache_nbgethostbyaddr(const Ip::Address &, FQDNH *, void *);
fc54b8d2 36
fc54b8d2 37#endif /* SQUID_FQDNCACHE_H_ */
f53969cc 38