Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-05-29 | use paramaters instead of static storage in _gethostbyname() | Eric Faurot | |
2013-05-27 | Add minimal support for _res setup and update. | Eric Faurot | |
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@ | |||
2013-04-30 | various small fixes; | Jason McIntyre | |
2013-04-30 | Do not take external buffers for storing DNS responses in the internal | Eric Faurot | |
async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed. | |||
2013-04-30 | copy input flags in result addrinfo structures. | Eric Faurot | |
2013-04-17 | check return value of strdup(), fix mem leak in error path and take | Otto Moerbeek | |
into account that asr_use_resolver() can return NULL; ok tedu@ eric@ | |||
2013-04-17 | give a timespec a name that is easier to verify | Theo de Raadt | |
2013-04-14 | spacing | Theo de Raadt | |
2013-04-11 | Proper access of _THREAD_PRIVATE storage. Avoids a mem leak and reinit | Otto Moerbeek | |
of resolver context for each resolver call for single threaded programs. With and ok tedu@ ok eric@ | |||
2013-04-09 | show what we parsed in debug output; ok guether@ | Otto Moerbeek | |
2013-04-08 | Do not fail if the user buffer is too short to hold the packet: fill it up | Eric Faurot | |
to the given size and return the packet length. issue spotted by weerd@ | |||
2013-04-08 | Comply with rfc2553. lib/libc/net/getaddrinfo.c already has this right. | Christopher Zimmermann | |
This fixes hostname resolution for OpenVPN 2.3.1. ok eric@. | |||
2013-04-05 | do not fail on EINTR | Eric Faurot | |
suggested by deraadt@ | |||
2013-04-04 | fix alignment issue in getnetby{addr,name}() too. | Eric Faurot | |
2013-04-04 | use the provided ALIGN() macro instead of re-inventing a square wheel. | Eric Faurot | |
prodded by deraadt@ | |||
2013-04-03 | properly follow the CNAME chain in reverse lookups | Eric Faurot | |
spotted by sthen@ | |||
2013-04-03 | Use MSG_NOSIGNAL when writing DNS queries over TCP sockets to ensure | Matthew Dempsky | |
we don't trigger SIGPIPE. ok millert | |||
2013-04-02 | add comment for how EINPROGRESS is handled there. | Eric Faurot | |
2013-04-02 | make sure we always point before the current offset. | Eric Faurot | |
spotted by matthew@ | |||
2013-04-02 | better implementation for tcp_read() that can get the packet length in | Eric Faurot | |
multiple read. prodded by deraadt@ | |||
2013-04-01 | If more than one lookup line is found in resolv.conf, the latest one | Eric Faurot | |
takes precedence. Simplify code while there. suggested by deraadt@ | |||
2013-04-01 | properly check for domain name truncation at various places and fail | Eric Faurot | |
if that happens. prodded by deraadt@ | |||
2013-04-01 | space cleanup; ok eric | Theo de Raadt | |
2013-04-01 | space cleanup; ok eric | Theo de Raadt | |
2013-04-01 | rename field | Eric Faurot | |
2013-04-01 | simpler and saner implementation for tcp_write(). now fully handles | Eric Faurot | |
short writes. prodded by deraadt@ | |||
2013-04-01 | fix alignment issue in the structure filled by gethostby{name,addr}() | Eric Faurot | |
spotted by naddy@ | |||
2013-03-31 | Principle of least astonishment: implement nameserver retry/backoff as | Eric Faurot | |
in the former resolver. | |||
2013-03-30 | allow "0" as service name for raw sockets. | Eric Faurot | |
ok sthen@ bluhm@ | |||
2013-03-30 | Do not assume local nameserver if resolv.conf doesn't exist, just use | Eric Faurot | |
/etc/hosts. discussed with deraadt@ | |||
2013-03-30 | don't ever skip reload the very first time; detective work by rpe@; ok eric@ | Otto Moerbeek | |
2013-03-29 | properly handle scope when parsing IPv6 addresses. | Eric Faurot | |
ok bluhm@ naddy@ sthen@ | |||
2013-03-29 | res_querydomain()'s code to terminate the domain with '.' had the assignment | Philip Guenther | |
flipped so that it always used a domain of ".." Heavy lifting by otto@ ok eric@ otto@ miod@ | |||
2013-03-29 | correctly show the scope for IPv6 addresses in getnameinfo() | Eric Faurot | |
2013-03-29 | Do not fail in gethostbyname_async() if there are multiple addresses in | Eric Faurot | |
a DNS packet... | |||
2013-03-28 | accept and use any protocol specified by the caller. | Eric Faurot | |
issue spotted by naddy@ | |||
2013-03-27 | explicitely -> explicitly; | Jason McIntyre | |
2013-03-27 | Only use the search domains for DNS lookups, as the current resolver does. | Eric Faurot | |
Better not diverge too much in behavior at this point. Typo fix and doc update while there. | |||
2012-12-17 | Allow gethostbyname() to accept a numeric IP string. | Eric Faurot | |
No lookup is done in this case. regression reported by espie@ | |||
2012-11-24 | Saner implementation for self-contained hostent and netent, and also | Eric Faurot | |
a couple of fixes. | |||
2012-11-24 | knf | Eric Faurot | |
2012-11-24 | make separate structures for pack and unpack | Eric Faurot | |
2012-09-09 | tweak options | Eric Faurot | |
2012-09-09 | allow to disable some features at build time | Eric Faurot | |
2012-09-09 | cleanup asr_debug.c | Eric Faurot | |
2012-09-09 | use proper macros for debug traces. | Eric Faurot | |
2012-09-08 | split asr_resolver.c into different files to overlay the libc/net | Eric Faurot | |
resolver implementation. | |||
2012-09-07 | return value has no use; make it void. | Eric Faurot | |
fix comment. | |||
2012-09-07 | unused variables | Eric Faurot | |
2012-09-06 | config parsing is done in one pass now. no need to use callback anymore. | Eric Faurot | |