Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move search domain iteration code in res_search_async.c where it belongs. | 2013-06-01 | 3 | -112/+118 | |
| | |||||
* | Make hostaliases work for gethostbyname() and getaddrinfo() when | 2013-06-01 | 5 | -38/+40 | |
| | | | | | | looking into /etc/hosts. Remove the alias check from the search domain iteration. Instead, take a shortcut to res_query_async_ctx() in res_search_async_ctx(). | ||||
* | Update asr_hostaliases() to make all necessary checks in the function. | 2013-06-01 | 2 | -14/+14 | |
| | | | | | Explicitely check for issetguid() before calling getenv(). Also make asr_hostalias() callable from other parts of asr too. | ||||
* | iterating over the ns list only matters for res_send_async.c, so move | 2013-06-01 | 3 | -39/+37 | |
| | | | | things around. | ||||
* | use paramaters instead of static storage in _gethostbyname() | 2013-05-29 | 1 | -26/+48 | |
| | |||||
* | Add minimal support for _res setup and update. | 2013-05-27 | 11 | -45/+93 | |
| | | | | | | | | 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@ | ||||
* | various small fixes; | 2013-04-30 | 1 | -4/+5 | |
| | |||||
* | Do not take external buffers for storing DNS responses in the internal | 2013-04-30 | 12 | -122/+55 | |
| | | | | | async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed. | ||||
* | copy input flags in result addrinfo structures. | 2013-04-30 | 1 | -1/+2 | |
| | |||||
* | check return value of strdup(), fix mem leak in error path and take | 2013-04-17 | 1 | -10/+17 | |
| | | | | into account that asr_use_resolver() can return NULL; ok tedu@ eric@ | ||||
* | give a timespec a name that is easier to verify | 2013-04-17 | 1 | -5/+5 | |
| | |||||
* | spacing | 2013-04-14 | 4 | -8/+8 | |
| | |||||
* | Proper access of _THREAD_PRIVATE storage. Avoids a mem leak and reinit | 2013-04-11 | 1 | -3/+3 | |
| | | | | | of resolver context for each resolver call for single threaded programs. With and ok tedu@ ok eric@ | ||||
* | show what we parsed in debug output; ok guether@ | 2013-04-09 | 1 | -2/+2 | |
| | |||||
* | Do not fail if the user buffer is too short to hold the packet: fill it up | 2013-04-08 | 2 | -5/+26 | |
| | | | | | | to the given size and return the packet length. issue spotted by weerd@ | ||||
* | Comply with rfc2553. lib/libc/net/getaddrinfo.c already has this right. | 2013-04-08 | 1 | -2/+2 | |
| | | | | | | This fixes hostname resolution for OpenVPN 2.3.1. ok eric@. | ||||
* | do not fail on EINTR | 2013-04-05 | 1 | -4/+16 | |
| | | | | suggested by deraadt@ | ||||
* | fix alignment issue in getnetby{addr,name}() too. | 2013-04-04 | 1 | -6/+10 | |
| | |||||
* | use the provided ALIGN() macro instead of re-inventing a square wheel. | 2013-04-04 | 1 | -7/+3 | |
| | | | | prodded by deraadt@ | ||||
* | properly follow the CNAME chain in reverse lookups | 2013-04-03 | 1 | -5/+13 | |
| | | | | spotted by sthen@ | ||||
* | Use MSG_NOSIGNAL when writing DNS queries over TCP sockets to ensure | 2013-04-03 | 1 | -2/+7 | |
| | | | | | | we don't trigger SIGPIPE. ok millert | ||||
* | add comment for how EINPROGRESS is handled there. | 2013-04-02 | 1 | -1/+6 | |
| | |||||
* | make sure we always point before the current offset. | 2013-04-02 | 1 | -2/+2 | |
| | | | | spotted by matthew@ | ||||
* | better implementation for tcp_read() that can get the packet length in | 2013-04-02 | 2 | -23/+35 | |
| | | | | | | multiple read. prodded by deraadt@ | ||||
* | If more than one lookup line is found in resolv.conf, the latest one | 2013-04-01 | 1 | -18/+9 | |
| | | | | | | takes precedence. Simplify code while there. suggested by deraadt@ | ||||
* | properly check for domain name truncation at various places and fail | 2013-04-01 | 3 | -20/+30 | |
| | | | | | | if that happens. prodded by deraadt@ | ||||
* | space cleanup; ok eric | 2013-04-01 | 2 | -4/+4 | |
| | |||||
* | space cleanup; ok eric | 2013-04-01 | 13 | -72/+72 | |
| | |||||
* | rename field | 2013-04-01 | 2 | -6/+6 | |
| | |||||
* | simpler and saner implementation for tcp_write(). now fully handles | 2013-04-01 | 2 | -40/+16 | |
| | | | | | | short writes. prodded by deraadt@ | ||||
* | fix alignment issue in the structure filled by gethostby{name,addr}() | 2013-04-01 | 1 | -10/+23 | |
| | | | | spotted by naddy@ | ||||
* | Principle of least astonishment: implement nameserver retry/backoff as | 2013-03-31 | 2 | -8/+10 | |
| | | | | in the former resolver. | ||||
* | allow "0" as service name for raw sockets. | 2013-03-30 | 1 | -2/+2 | |
| | | | | ok sthen@ bluhm@ | ||||
* | Do not assume local nameserver if resolv.conf doesn't exist, just use | 2013-03-30 | 2 | -8/+7 | |
| | | | | | | /etc/hosts. discussed with deraadt@ | ||||
* | don't ever skip reload the very first time; detective work by rpe@; ok eric@ | 2013-03-30 | 1 | -2/+2 | |
| | |||||
* | properly handle scope when parsing IPv6 addresses. | 2013-03-29 | 1 | -2/+32 | |
| | | | | ok bluhm@ naddy@ sthen@ | ||||
* | res_querydomain()'s code to terminate the domain with '.' had the assignment | 2013-03-29 | 1 | -2/+2 | |
| | | | | | | | flipped so that it always used a domain of ".." Heavy lifting by otto@ ok eric@ otto@ miod@ | ||||
* | correctly show the scope for IPv6 addresses in getnameinfo() | 2013-03-29 | 1 | -4/+27 | |
| | |||||
* | Do not fail in gethostbyname_async() if there are multiple addresses in | 2013-03-29 | 1 | -3/+3 | |
| | | | | a DNS packet... | ||||
* | accept and use any protocol specified by the caller. | 2013-03-28 | 1 | -14/+10 | |
| | | | | issue spotted by naddy@ | ||||
* | explicitely -> explicitly; | 2013-03-27 | 1 | -2/+2 | |
| | |||||
* | Only use the search domains for DNS lookups, as the current resolver does. | 2013-03-27 | 7 | -85/+63 | |
| | | | | | Better not diverge too much in behavior at this point. Typo fix and doc update while there. | ||||
* | Allow gethostbyname() to accept a numeric IP string. | 2012-12-17 | 1 | -4/+47 | |
| | | | | | | No lookup is done in this case. regression reported by espie@ | ||||
* | Saner implementation for self-contained hostent and netent, and also | 2012-11-24 | 2 | -164/+177 | |
| | | | | a couple of fixes. | ||||
* | knf | 2012-11-24 | 15 | -140/+141 | |
| | |||||
* | make separate structures for pack and unpack | 2012-11-24 | 8 | -61/+79 | |
| | |||||
* | tweak options | 2012-09-09 | 1 | -5/+10 | |
| | |||||
* | allow to disable some features at build time | 2012-09-09 | 1 | -5/+48 | |
| | |||||
* | cleanup asr_debug.c | 2012-09-09 | 4 | -407/+222 | |
| | |||||
* | use proper macros for debug traces. | 2012-09-09 | 5 | -178/+89 | |
| |