summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-09-09 17:39:47 +0000
committeryar <yar@FreeBSD.org>2004-09-09 17:39:47 +0000
commite1618f7fe222b508f07ce05b65cbb46154c4d52e (patch)
tree35483d5bccdecaca6c28dbf0637689cbd75fa8cd
parentb6d3857ae64795144eba52289addb0691915cbfe (diff)
downloadFreeBSD-src-e1618f7fe222b508f07ce05b65cbb46154c4d52e.zip
FreeBSD-src-e1618f7fe222b508f07ce05b65cbb46154c4d52e.tar.gz
Add the macro RES_DFLRETRY long-promised by resolver(5).
It specifies the default number of retries per a name server. This makes the code consistent with the manpage and allows to kill another constant in res_init.c that should have been a #define'd parameter. (This appears to be a case when the manpage was better than the code, so the latter was to be fixed.) PR: bin/62139 (in the audit trail)
-rw-r--r--include/resolv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/resolv.h b/include/resolv.h
index 800f73c..f9f8de1 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -92,6 +92,7 @@
#define LOCALDOMAINPARTS 2 /* min levels in name that is "local" */
#define RES_TIMEOUT 5 /* min. seconds between retries */
+#define RES_DFLRETRY 4 /* retries per each name server */
#define MAXRESOLVSORT 10 /* number of net to sort on */
#define RES_MAXNDOTS 15 /* should reflect bit field size */
#define RES_MAXRETRANS 30 /* only for resolv.conf/RES_OPTIONS */
OpenPOWER on IntegriCloud