summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/res_init.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow setting of retransmission intervasl via _res.retrans. Ugly API butotto2019-06-171-1/+4
| | | | it's all we got. ok jca@
* Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specificguenther2016-04-051-4/+4
| | | | | | data isn't necessary. ok mpi@, ok&tweak natano@
* Initialize _res_ext.nsaddr_list alongside _res.nsaddr_list.chrisz2016-03-231-9/+16
| | | | | | | Fallback to initialization with 0 when _res.nsaddr_list is to small to hold an IPv6 address. OK bluhm@
* Set the name server counter in __res_state correctly if a nameserverbluhm2015-11-051-2/+2
| | | | | from asr_ctx was skiped. Missed in previous commit. OK deraadt@
* When filling the __res_state compatibiliy struct, a long list ofbluhm2015-11-051-4/+8
| | | | | | | | nameservers could overflow the dns search pointers. Restrict the number, size and address family of nameservers in res_init(3). This fixes a crash in sendmail. Only programs that use the bind resolver internals directly are affected. OK deraadt@ millert@
* Wrap <resolv.h> so that internal calls go directguenther2015-10-051-1/+2
| | | | ok millert@
* Hide all unnecessary asr / resolver related API with _ prefixes.deraadt2015-09-091-3/+3
| | | | direction & ok guenther
* Make the asr API public. Install asr.h to /usr/include.h and manpages.eric2014-03-261-2/+4
| | | | | | Include tweaks suggested by mpi@ ok deraadt@
* Initialise _res.nsaddr_list in res_init(), fixing some programs which dependsthen2014-01-151-1/+6
| | | | | | | on bind resolver internals. Note, the list will not be updated if resolv.conf is changed while the program runs unless the caller resets the RES_INIT flag. Approach suggested by otto@, original diff from Kapetanakis Giannis, fix suggested by tedu@ and dug up again by Riccardo Mottola. Looks ok to eric@.
* Add minimal support for _res setup and update.eric2013-05-271-9/+46
| | | | | | | | Change res_init() to initialize the _res structure on first call, and udpate the global async context if changes were made by the user. All resolver functions now call res_init() internally. fixes issue spotted by otto@
* split asr_resolver.c into different files to overlay the libc/neteric2012-09-081-0/+44
resolver implementation.