History log of /openbsd-src/lib/libc/asr/res_init.c (Results 1 – 11 of 11)
Revision Date Author Comments
# ecb0cd2c 17-Jun-2019 otto <otto@openbsd.org>

Allow setting of retransmission intervasl via _res.retrans. Ugly API but
it's all we got. ok jca@


# c6cbd355 05-Apr-2016 guenther <guenther@openbsd.org>

Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specific
data isn't necessary.

ok mpi@, ok&tweak natano@


# a3b56213 23-Mar-2016 chrisz <chrisz@openbsd.org>

Initialize _res_ext.nsaddr_list alongside _res.nsaddr_list.
Fallback to initialization with 0 when _res.nsaddr_list is to small to hold an
IPv6 address.

OK bluhm@


# d0bb122b 05-Nov-2015 bluhm <bluhm@openbsd.org>

Set the name server counter in __res_state correctly if a nameserver
from asr_ctx was skiped. Missed in previous commit.
OK deraadt@


# 177fe54c 05-Nov-2015 bluhm <bluhm@openbsd.org>

When filling the __res_state compatibiliy struct, a long list of
nameservers could overflow the dns search pointers. Restrict the
number, size and address family of nameservers in res_init(3). This

When filling the __res_state compatibiliy struct, a long list of
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@

show more ...


# c8503c07 05-Oct-2015 guenther <guenther@openbsd.org>

Wrap <resolv.h> so that internal calls go direct

ok millert@


# 253ef892 09-Sep-2015 deraadt <deraadt@openbsd.org>

Hide all unnecessary asr / resolver related API with _ prefixes.
direction & ok guenther


# d216d6b1 26-Mar-2014 eric <eric@openbsd.org>

Make the asr API public. Install asr.h to /usr/include.h and manpages.
Include tweaks suggested by mpi@

ok deraadt@


# 38a63ed1 15-Jan-2014 sthen <sthen@openbsd.org>

Initialise _res.nsaddr_list in res_init(), fixing some programs which depend
on bind resolver internals. Note, the list will not be updated if resolv.conf
is changed while the program runs unless the

Initialise _res.nsaddr_list in res_init(), fixing some programs which depend
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@.

show more ...


# 1ed934d0 27-May-2013 eric <eric@openbsd.org>

Add minimal support for _res setup and update.

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 fu

Add minimal support for _res setup and update.

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@

show more ...


# 8082e013 08-Sep-2012 eric <eric@openbsd.org>

split asr_resolver.c into different files to overlay the libc/net
resolver implementation.