summaryrefslogtreecommitdiff
path: root/server/global.c
diff options
context:
space:
mode:
authorGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-02-18 14:20:12 -0500
committerGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-03-18 19:21:16 -0400
commit4f9ad057ca1391dac5d3ae3b35563185abae36e3 (patch)
tree817a1932deb8d343459627f8f9078b14ac82c650 /server/global.c
parent0a1b1120ff30703ff6e661a7b7901380f0ce4192 (diff)
server: c-ares support
Add the bits we need to be able to use c-ares for DNS operations in the server. This handles initialization and making sure the resolver's sockets and timeouts are considered in the main loop.
Diffstat (limited to 'server/global.c')
-rw-r--r--server/global.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/global.c b/server/global.c
index 69aea1f..5199f7b 100644
--- a/server/global.c
+++ b/server/global.c
@@ -18,6 +18,9 @@ int srv_socket; /* dgram socket for clients
and other servers */
int bdump_socket = -1; /* brain dump socket fd
(closed most of the time) */
+#ifdef HAVE_ARES
+ares_channel achannel; /* C-ARES resolver channel */
+#endif
fd_set interesting; /* the file descrips we are listening
to right now */
struct sockaddr_in srv_addr; /* address of the socket */