NetmaskGroup g_proxyProtocolACL;
size_t g_proxyProtocolMaximumSize;
+// Implemented in auth-carbon.cc. Avoids having an auth-carbon.hh declaring exactly one function.
+void carbonDumpThread();
+
ArgvMap& arg()
{
return theArg;
}
-void declareArguments()
+static void declareArguments()
{
::arg().set("config-dir", "Location of configuration directory (pdns.conf)") = SYSCONFDIR;
::arg().set("config-name", "Name of this virtual configuration - will rename the binary image") = "";
return round(send_latency);
}
-void declareStats()
+static void declareStats()
{
S.declare("udp-queries", "Number of UDP queries received");
S.declare("udp-do-queries", "Number of UDP queries received with DO bit");
S.declareComboRing("remotes-corrupt", "Remote hosts sending corrupt packets");
}
-int isGuarded(char** argv)
+static int isGuarded(char** argv)
{
char* p = strstr(argv[0], "-instance");
dummy.join();
}
-void mainthread()
+static void mainthread()
{
Utility::srandom();
extern CommunicatorClass Communicator;
extern std::shared_ptr<UDPNameserver> N;
extern std::unique_ptr<TCPNameserver> TN;
-extern void declareArguments();
-extern void declareStats();
-void mainthread();
-extern int isGuarded(char**);
-void carbonDumpThread();
extern bool g_anyToTcp;
extern bool g_8bitDNS;
extern NetmaskGroup g_proxyProtocolACL;