]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: move s_starttime from dns.hh to auth-main.hh
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Wed, 3 Aug 2022 18:52:11 +0000 (20:52 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Sat, 10 Sep 2022 09:49:36 +0000 (11:49 +0200)
Variable storage is in auth-main.cc, and dns.hh is used by all products.

pdns/auth-main.hh
pdns/dns.hh

index 799383197388b4e4e7f7f4726b51364e4b5b2fc3..f373b6cd5aacf31ac484e2a9d0c5f5907ad6520a 100644 (file)
@@ -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
index f0b204ee23d57d39cb380cacfb09f36553b920eb..6f326a0eb8c374ce6e67b593b7587a95dbf493fd 100644 (file)
@@ -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