From: Chris Hofstaedtler Date: Wed, 3 Aug 2022 18:52:11 +0000 (+0200) Subject: auth: move s_starttime from dns.hh to auth-main.hh X-Git-Tag: rec-4.8.0-alpha1~20^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2733dbf7f1ce5743e6e727ee6b55bda4e3e6585e;p=thirdparty%2Fpdns.git auth: move s_starttime from dns.hh to auth-main.hh Variable storage is in auth-main.cc, and dns.hh is used by all products. --- diff --git a/pdns/auth-main.hh b/pdns/auth-main.hh index 7993831973..f373b6cd5a 100644 --- a/pdns/auth-main.hh +++ b/pdns/auth-main.hh @@ -35,6 +35,7 @@ #include "tcpreceiver.hh" #include "dnsseckeeper.hh" +extern time_t s_starttime; extern ArgvMap theArg; extern StatBag S; //!< Statistics are gathered across PDNS via the StatBag class S extern AuthPacketCache PC; //!< This is the main PacketCache, shared across all threads diff --git a/pdns/dns.hh b/pdns/dns.hh index f0b204ee23..6f326a0eb8 100644 --- a/pdns/dns.hh +++ b/pdns/dns.hh @@ -253,8 +253,6 @@ inline uint16_t * getFlagsFromDNSHeader(struct dnsheader * dh) #define FLAGS_CD_OFFSET (12) #endif -extern time_t s_starttime; - uint32_t hashQuestion(const uint8_t* packet, uint16_t len, uint32_t init, bool& ok); struct TSIGTriplet