From 495248674223c89356bec0bbbb8eb93b2e298de6 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 25 Jun 2024 17:53:28 +1200 Subject: [PATCH 1/2] Maintenance: Polish fqdncache.h --- src/fqdncache.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fqdncache.h b/src/fqdncache.h index 262c8997a1c..65eb8b24e45 100644 --- a/src/fqdncache.h +++ b/src/fqdncache.h @@ -11,19 +11,17 @@ #ifndef SQUID_SRC_FQDNCACHE_H #define SQUID_SRC_FQDNCACHE_H -#include "ip/Address.h" +#include "dns/forward.h" #include "sbuf/forward.h" class StoreEntry; namespace Dns { -class LookupDetails; - /// whether to do reverse DNS lookups for source IPs of accepted connections extern bool ResolveClientAddressesAsap; } -typedef void FQDNH(const char *, const Dns::LookupDetails &details, void *); +typedef void FQDNH(const char *, const Dns::LookupDetails &, void *); void fqdncache_init(void); void fqdnStats(StoreEntry *); From 533a9208d52dabccc7ab61cb808394c73dfb0b9f Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 27 Jun 2024 01:26:32 +1200 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Alex Rousskov --- src/fqdncache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fqdncache.h b/src/fqdncache.h index 65eb8b24e45..098651945c8 100644 --- a/src/fqdncache.h +++ b/src/fqdncache.h @@ -13,8 +13,8 @@ #include "dns/forward.h" #include "sbuf/forward.h" +#include "store/forward.h" -class StoreEntry; namespace Dns { /// whether to do reverse DNS lookups for source IPs of accepted connections