summaryrefslogtreecommitdiff
path: root/include/resolv.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-17 15:55:35 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-17 15:55:35 +0000
commit17fc4be5ebc7910f4c99a8f45da1143460a7e666 (patch)
treedd54355343e1a9da8df029b1a3ef6408519acc38 /include/resolv.h
parent64933f2dc517eab440c4242234f079127e1f15a7 (diff)
resolver: use timeout of 5 (glibc uses that).
delete some duplication in constants.
Diffstat (limited to 'include/resolv.h')
-rw-r--r--include/resolv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/resolv.h b/include/resolv.h
index 9fcc2b48c..acbd4c7f1 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -98,7 +98,8 @@ typedef res_sendhookact (*res_send_rhook) (const struct sockaddr_in *ns,
# define RES_MAXNDOTS 15 /* should reflect bit field size */
# define RES_MAXRETRANS 30 /* only for resolv.conf/RES_OPTIONS */
# define RES_MAXRETRY 5 /* only for resolv.conf/RES_OPTIONS */
-# define RES_DFLRETRY 2 /* Default #/tries. */
+# define RES_DFLRETRY 3 /* Default #/tries. */
+/* (glibc uses RES_DFLRETRY of 2 but also does _res.retry = 4 sometimes (!) */
# define RES_MAXTIME 65535 /* Infinity, in milliseconds. */
/* _res (an instance of this structure) uses 0.5kb in bss