**/
#include "or.h"
+#include "dnsserv.h"
static connection_t *connection_create_listener(
struct sockaddr *listensockaddr,
**/
#include "or.h"
+#include "dnsserv.h"
#ifdef HAVE_LINUX_TYPES_H
#include <linux/types.h>
#define CONTROL_PRIVATE
#include "or.h"
+#include "dnsserv.h"
/** Yield true iff <b>s</b> is the state of a control_connection_t that has
* finished authentication and is accepting commands. */
**/
#include "or.h"
+#include "dnsserv.h"
#ifdef HAVE_EVENT2_DNS_H
#include <event2/dns.h>
#include <event2/dns_compat.h>
--- /dev/null
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2010, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file dnsserv.h
+ * \brief Header file for dnsserv functions
+ **/
+
+#ifndef _TOR_DNSSERV_H
+#define _TOR_DNSSERV_H
+
+void dnsserv_configure_listener(connection_t *conn);
+void dnsserv_close_listener(connection_t *conn);
+void dnsserv_resolved(edge_connection_t *conn,
+ int answer_type,
+ size_t answer_len,
+ const char *answer,
+ int ttl);
+void dnsserv_reject_request(edge_connection_t *conn);
+int dnsserv_launch_request(const char *name, int is_reverse);
+
+#endif
+
#define GEOIP_PRIVATE
#include "or.h"
#include "ht.h"
+#include "dnsserv.h"
static void clear_geoip_db(void);
#define MAIN_PRIVATE
#include "or.h"
+#include "dnsserv.h"
#ifdef USE_DMALLOC
#include <dmalloc.h>
#include <openssl/crypto.h>
void dns_reset_correctness_checks(void);
void dump_dns_mem_usage(int severity);
-/********************************* dnsserv.c ************************/
-
-void dnsserv_configure_listener(connection_t *conn);
-void dnsserv_close_listener(connection_t *conn);
-void dnsserv_resolved(edge_connection_t *conn,
- int answer_type,
- size_t answer_len,
- const char *answer,
- int ttl);
-void dnsserv_reject_request(edge_connection_t *conn);
-int dnsserv_launch_request(const char *name, int is_reverse);
-
/********************************* geoip.c **************************/
/** Round all GeoIP results to the next multiple of this value, to avoid