summaryrefslogtreecommitdiff
path: root/lib/libc/asr
AgeCommit message (Collapse)Author
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
2012-08-18getrrsetyname() only uses ERRSET_* and is not supposed to set errno.Eric Faurot
make sure to save and restore errno properly.
2012-08-18Simplify error reporting in hostaddr_async(). Only use EAI_* error codes.Eric Faurot
2012-08-18Improve error reporting in getnameinfo_async() and getaddrinfo_async().Eric Faurot
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@.
2012-07-29must be zero'd (found by regress)Eric Faurot
2012-07-13properly report EAI_SERVICE when the given servname is not defined forEric Faurot
the given protocol.
2012-07-12unused variablesEric Faurot
2012-07-11implement res_mkqueryEric Faurot
2012-07-10same code update and fix as for gethostnamadr_asyncEric Faurot
2012-07-10simplify the code, improve error handling and plug a potential fd leak on errorEric Faurot
2012-07-10use the value actually passed to the functionEric Faurot
2012-07-10Better handling of servname in getaddrinfo_async. Do not necessarilyEric Faurot
fail if there is no entry for a given protocol. Fix issue reported by early testers.
2012-07-08implement res_querydomain() required by sendmailEric Faurot
2012-07-08add stub function for gethostent(), and move things around a bit while here.Eric Faurot
2012-07-07rename function to avoid symbol clashEric Faurot
2012-07-07remove bogus include of bsd.lib.mkEric Faurot
2012-04-25fix a few warningsEric Faurot
2012-04-15Create a new resolver for each thread. It will be done differentlyEric Faurot
eventually, but it's enough for now to make the blocking API fully thread-safe without locking.
2012-04-15calling getnameinfo here is a bad idea. use inet_ntop.Eric Faurot
2012-04-15tweak previous;Jason McIntyre
2012-04-14only define DEBUG internallyEric Faurot