summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-11-01 18:35:19 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2008-11-01 18:35:19 (GMT)
commit1a1b4eb4f2fb6112534994c20ac20679c5c7339c (patch)
tree76fda13f7f58853b63f184e061cb75eec6922d44 /ares.h
parentaa8d8b4933ca1f5de8da3f92f614e5f3236d6f89 (diff)
downloadc-ares-1a1b4eb4f2fb6112534994c20ac20679c5c7339c.zip
c-ares-1a1b4eb4f2fb6112534994c20ac20679c5c7339c.tar.gz
c-ares-1a1b4eb4f2fb6112534994c20ac20679c5c7339c.tar.bz2
- Carlo Contavalli added support for the glibc "rotate" option, as documented
in man resolv.conf: causes round robin selection of nameservers from among those listed. This has the effect of spreading the query load among all listed servers, rather than having all clients try the first listed server first every time. You can enable it with ARES_OPT_ROTATE
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ares.h b/ares.h
index 3609f86..1507f41 100644
--- a/ares.h
+++ b/ares.h
@@ -114,6 +114,7 @@ extern "C" {
#define ARES_OPT_SOCK_SNDBUF (1 << 11)
#define ARES_OPT_SOCK_RCVBUF (1 << 12)
#define ARES_OPT_TIMEOUTMS (1 << 13)
+#define ARES_OPT_ROTATE (1 << 14)
/* Nameinfo flag values */
#define ARES_NI_NOFQDN (1 << 0)
@@ -184,6 +185,7 @@ struct ares_options {
int timeout; /* in seconds or milliseconds, depending on options */
int tries;
int ndots;
+ int rotate;
unsigned short udp_port;
unsigned short tcp_port;
int socket_send_buffer_size;