summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/getaddrinfo_async.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make hostaliases work for gethostbyname() and getaddrinfo() wheneric2013-06-011-5/+15
| | | | | | 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().
* Do not take external buffers for storing DNS responses in the internaleric2013-04-301-3/+3
| | | | | 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.eric2013-04-301-1/+2
|
* Comply with rfc2553. lib/libc/net/getaddrinfo.c already has this right.chrisz2013-04-081-2/+2
| | | | | | This fixes hostname resolution for OpenVPN 2.3.1. ok eric@.
* space cleanup; ok ericderaadt2013-04-011-3/+3
|
* allow "0" as service name for raw sockets.eric2013-03-301-2/+2
| | | | ok sthen@ bluhm@
* accept and use any protocol specified by the caller.eric2013-03-281-14/+10
| | | | issue spotted by naddy@
* Only use the search domains for DNS lookups, as the current resolver does.eric2013-03-271-38/+27
| | | | | Better not diverge too much in behavior at this point. Typo fix and doc update while there.
* knferic2012-11-241-23/+22
|
* make separate structures for pack and unpackeric2012-11-241-3/+3
|
* include yp headers if necessary.eric2012-09-061-2/+8
| | | | remove unused variable.
* Get rid of the hostaddr_async subquery and merge its behavioureric2012-09-051-64/+290
| | | | | directly into getaddrinfo_async_run. Simplifies everything by a great deal.
* Make hostaddr_async() return a linked list of struct addrinfo. Firsteric2012-09-051-23/+20
| | | | | | round of a getaddrinfo_async() simplification. The goal is to make YP support easier to add, and eventually remove the whole hostaddr_async subquery.
* Improve error reporting in getnameinfo_async() and getaddrinfo_async().eric2012-08-181-37/+16
| | | | | | | | | | They do not have to deal with h_errno at all. Also, errno is only kept for EAI_SYSTEM. Small code cleanup while there. Adapt getnameinfo() and getaddrinfo() wrappers to correctly save errno and overwrite it in the EAI_SYSTEM case. General errno handling issue reported by mikeb@.
* properly report EAI_SERVICE when the given servname is not defined foreric2012-07-131-2/+4
| | | | the given protocol.
* Better handling of servname in getaddrinfo_async. Do not necessarilyeric2012-07-101-11/+16
| | | | | fail if there is no entry for a given protocol. Fix issue reported by early testers.
* fix a few warningseric2012-04-251-2/+2
|
* Import asr, an experimental async resolver implementation.eric2012-04-141-0/+500
The idea is to eventually replace the existing resolver with something better. Time to start working on it in tree. ok deraadt@