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)
This commit is contained in:
Yaroslav Tykhiy 2004-09-09 17:39:47 +00:00
parent 0e168c1514
commit b22ae8ba2d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134999

View File

@ -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 */