diff options
author | Jeffrey Hutzelman <jhutz@cmu.edu> | 2013-02-18 14:20:12 -0500 |
---|---|---|
committer | Jeffrey Hutzelman <jhutz@cmu.edu> | 2013-03-18 19:21:16 -0400 |
commit | 4f9ad057ca1391dac5d3ae3b35563185abae36e3 (patch) | |
tree | 817a1932deb8d343459627f8f9078b14ac82c650 /server/zserver.h | |
parent | 0a1b1120ff30703ff6e661a7b7901380f0ce4192 (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/zserver.h')
-rw-r--r-- | server/zserver.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/zserver.h b/server/zserver.h index 6ded4a4..822a90c 100644 --- a/server/zserver.h +++ b/server/zserver.h @@ -15,6 +15,9 @@ #include <zephyr/mit-copyright.h> #include <internal.h> +#ifdef HAVE_ARES +#include <ares.h> +#endif #include <arpa/inet.h> @@ -423,6 +426,9 @@ extern int srv_socket; /* dgram sockets for clients and other servers */ extern int bdump_socket; /* brain dump socket (closed most of the time) */ +#ifdef HAVE_ARES +extern ares_channel achannel; +#endif extern fd_set interesting; /* the file descrips we are listening to right now */ |