]>
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 | */ | |
092f210a BH |
22 | #ifndef COMMON_STARTUP_HH |
23 | #define COMMON_STARTUP_HH | |
24 | ||
bf269e28 RG |
25 | #include "auth-packetcache.hh" |
26 | #include "auth-querycache.hh" | |
092f210a BH |
27 | #include "utility.hh" |
28 | #include "arguments.hh" | |
29 | #include "communicator.hh" | |
30 | #include "distributor.hh" | |
31 | #include "dnspacket.hh" | |
32 | #include "dnsproxy.hh" | |
33 | #include "dynlistener.hh" | |
34 | #include "nameserver.hh" | |
35 | #include "statbag.hh" | |
36 | #include "tcpreceiver.hh" | |
82ee5aa5 | 37 | #include "dnsseckeeper.hh" |
092f210a BH |
38 | |
39 | extern ArgvMap theArg; | |
abc1d928 | 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; | |
092f210a BH |
43 | extern DNSProxy *DP; |
44 | extern DynListener *dl; | |
45 | extern CommunicatorClass Communicator; | |
12f224ab RG |
46 | extern std::shared_ptr<UDPNameserver> N; |
47 | extern vector<std::shared_ptr<UDPNameserver> > g_udpReceivers; | |
092f210a | 48 | extern int avg_latency; |
8c98b341 | 49 | extern std::unique_ptr<TCPNameserver> TN; |
092f210a BH |
50 | extern ArgvMap & arg( void ); |
51 | extern void declareArguments(); | |
52 | extern void declareStats(); | |
53 | extern void mainthread(); | |
54 | extern int isGuarded( char ** ); | |
952d3fcb | 55 | void* carbonDumpThread(void*); |
357f6a75 | 56 | extern bool g_anyToTcp; |
fc41a1a6 | 57 | extern bool g_8bitDNS; |
af68014f | 58 | #ifdef HAVE_LUA_RECORDS |
cb6bd1a9 | 59 | extern bool g_doLuaRecord; |
32829819 | 60 | extern bool g_LuaRecordSharedState; |
af68014f | 61 | #endif // HAVE_LUA_RECORDS |
357f6a75 | 62 | |
092f210a | 63 | #endif // COMMON_STARTUP_HH |