]>
Commit | Line | Data |
---|---|---|
12c86877 | 1 | /* |
12471842 PL |
2 | * This file is part of PowerDNS or dnsdist. |
3 | * Copyright -- PowerDNS.COM B.V. and its contributors | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify | |
6 | * it under the terms of version 2 of the GNU General Public License as | |
7 | * published by the Free Software Foundation. | |
8 | * | |
9 | * In addition, for the avoidance of any doubt, permission is granted to | |
10 | * link this program with OpenSSL and to (re)distribute the binaries | |
11 | * produced as the result of such linking. | |
12 | * | |
13 | * This program is distributed in the hope that it will be useful, | |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | * GNU General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with this program; if not, write to the Free Software | |
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
21 | */ | |
e8c59f2d | 22 | #pragma once |
bf269e28 RG |
23 | #include "auth-packetcache.hh" |
24 | #include "auth-querycache.hh" | |
1f0fb39a | 25 | #include "auth-zonecache.hh" |
092f210a BH |
26 | #include "utility.hh" |
27 | #include "arguments.hh" | |
28 | #include "communicator.hh" | |
29 | #include "distributor.hh" | |
30 | #include "dnspacket.hh" | |
31 | #include "dnsproxy.hh" | |
32 | #include "dynlistener.hh" | |
33 | #include "nameserver.hh" | |
34 | #include "statbag.hh" | |
35 | #include "tcpreceiver.hh" | |
82ee5aa5 | 36 | #include "dnsseckeeper.hh" |
092f210a | 37 | |
c509c9fa | 38 | extern time_t g_starttime; |
092f210a | 39 | extern ArgvMap theArg; |
ad5f04f1 | 40 | extern StatBag S; //!< Statistics are gathered across PDNS via the StatBag class S |
bf269e28 RG |
41 | extern AuthPacketCache PC; //!< This is the main PacketCache, shared across all threads |
42 | extern AuthQueryCache QC; | |
c2826d2e | 43 | extern std::unique_ptr<DNSProxy> DP; |
092f210a | 44 | extern CommunicatorClass Communicator; |
9edbd73f | 45 | void carbonDumpThread(); // Implemented in auth-carbon.cc. Avoids having an auth-carbon.hh declaring exactly one function. |
357f6a75 | 46 | extern bool g_anyToTcp; |
fc41a1a6 | 47 | extern bool g_8bitDNS; |
4172a5b2 PD |
48 | extern NetmaskGroup g_proxyProtocolACL; |
49 | extern size_t g_proxyProtocolMaximumSize; | |
af68014f | 50 | #ifdef HAVE_LUA_RECORDS |
cb6bd1a9 | 51 | extern bool g_doLuaRecord; |
32829819 | 52 | extern bool g_LuaRecordSharedState; |
a6897a16 CHB |
53 | extern time_t g_luaHealthChecksInterval; |
54 | extern time_t g_luaHealthChecksExpireDelay; | |
a6be268f CHB |
55 | extern time_t g_luaConsistentHashesExpireDelay; |
56 | extern time_t g_luaConsistentHashesCleanupInterval; | |
af68014f | 57 | #endif // HAVE_LUA_RECORDS |