summaryrefslogtreecommitdiff
path: root/lib/libc/asr
AgeCommit message (Collapse)Author
2013-04-05do not fail on EINTREric Faurot
suggested by deraadt@
2013-04-04fix alignment issue in getnetby{addr,name}() too.Eric Faurot
2013-04-04use the provided ALIGN() macro instead of re-inventing a square wheel.Eric Faurot
prodded by deraadt@
2013-04-03properly follow the CNAME chain in reverse lookupsEric Faurot
spotted by sthen@
2013-04-03Use MSG_NOSIGNAL when writing DNS queries over TCP sockets to ensureMatthew Dempsky
we don't trigger SIGPIPE. ok millert
2013-04-02add comment for how EINPROGRESS is handled there.Eric Faurot
2013-04-02make sure we always point before the current offset.Eric Faurot
spotted by matthew@
2013-04-02better implementation for tcp_read() that can get the packet length inEric Faurot
multiple read. prodded by deraadt@
2013-04-01If more than one lookup line is found in resolv.conf, the latest oneEric Faurot
takes precedence. Simplify code while there. suggested by deraadt@
2013-04-01properly check for domain name truncation at various places and failEric Faurot
if that happens. prodded by deraadt@
2013-04-01space cleanup; ok ericTheo de Raadt
2013-04-01space cleanup; ok ericTheo de Raadt
2013-04-01rename fieldEric Faurot
2013-04-01simpler and saner implementation for tcp_write(). now fully handlesEric Faurot
short writes. prodded by deraadt@
2013-04-01fix alignment issue in the structure filled by gethostby{name,addr}()Eric Faurot
spotted by naddy@
2013-03-31Principle of least astonishment: implement nameserver retry/backoff asEric Faurot
in the former resolver.
2013-03-30allow "0" as service name for raw sockets.Eric Faurot
ok sthen@ bluhm@
2013-03-30Do not assume local nameserver if resolv.conf doesn't exist, just useEric Faurot
/etc/hosts. discussed with deraadt@
2013-03-30don't ever skip reload the very first time; detective work by rpe@; ok eric@Otto Moerbeek
2013-03-29properly handle scope when parsing IPv6 addresses.Eric Faurot
ok bluhm@ naddy@ sthen@
2013-03-29res_querydomain()'s code to terminate the domain with '.' had the assignmentPhilip Guenther
flipped so that it always used a domain of ".." Heavy lifting by otto@ ok eric@ otto@ miod@
2013-03-29correctly show the scope for IPv6 addresses in getnameinfo()Eric Faurot
2013-03-29Do not fail in gethostbyname_async() if there are multiple addresses inEric Faurot
a DNS packet...
2013-03-28accept and use any protocol specified by the caller.Eric Faurot
issue spotted by naddy@
2013-03-27explicitely -> explicitly;Jason McIntyre
2013-03-27Only 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-17Allow gethostbyname() to accept a numeric IP string.Eric Faurot
No lookup is done in this case. regression reported by espie@
2012-11-24Saner implementation for self-contained hostent and netent, and alsoEric Faurot
a couple of fixes.
2012-11-24knfEric Faurot
2012-11-24make separate structures for pack and unpackEric Faurot
2012-09-09tweak optionsEric Faurot
2012-09-09allow to disable some features at build timeEric Faurot
2012-09-09cleanup asr_debug.cEric Faurot
2012-09-09use proper macros for debug traces.Eric Faurot
2012-09-08split asr_resolver.c into different files to overlay the libc/netEric Faurot
resolver implementation.
2012-09-07return value has no use; make it void.Eric Faurot
fix comment.
2012-09-07unused variablesEric Faurot
2012-09-06config parsing is done in one pass now. no need to use callback anymore.Eric Faurot
2012-09-06include yp headers if necessary.Eric Faurot
remove unused variable.
2012-09-06make it easy to build without debug codeEric Faurot
2012-09-06add a strsplit() helper to factorize code a bit.Eric Faurot
2012-09-06YP is now supported.Eric Faurot
2012-09-06remove unused member, reorganize a bit and sync manpage.Eric Faurot
2012-09-05Get rid of the hostaddr_async subquery and merge its behaviourEric Faurot
directly into getaddrinfo_async_run. Simplifies everything by a great deal.
2012-09-05Implement basic (blocking) YP support for getaddrinfo_async().Eric Faurot
YP is now supported on all relevant resolver functions.
2012-09-05Make hostaddr_async() return a linked list of struct addrinfo. FirstEric Faurot
round of a getaddrinfo_async() simplification. The goal is to make YP support easier to add, and eventually remove the whole hostaddr_async subquery.
2012-09-04implement basic YP support for gethostbyname_async()/gethostbyaddr_async()Eric Faurot
by using the blocking YP API internally.
2012-08-19Build static netent and hostent structure in a nicer and hopefully notEric Faurot
broken way. Make it almost trivial to implement gethostby*_r() family of functions when needed.
2012-08-19When building dynamic hostent and netent, allocate a single linear buffer toEric Faurot
hold both the structure and the data. The freehostent() and freenetent() API functions are not needed anymore. While there, ensure that the constructed addr and alias lists are really NULL terminated.
2012-08-18ensure that async_run() and async_run_sync() always preserve errno.Eric Faurot