add support for reverse name lookups from hosts file to getnameinfo
authorRich Felker <dalias@aerifal.cx>
Wed, 4 Jun 2014 20:53:39 +0000 (16:53 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 4 Jun 2014 20:53:39 +0000 (16:53 -0400)
commit01dc3f4fea73e4df31cc3e3bb1cd5580fc0d7938
tree2f2df4e89bd0f01b63fda221ef9e6f147367afd9
parent934aa1350b96461f205ad69c95e8f6f035f6b62c
add support for reverse name lookups from hosts file to getnameinfo

this also affects the legacy gethostbyaddr family, which uses
getnameinfo as its backend.

some other minor changes associated with the refactoring of source
files are also made; in particular, the resolv.conf parser now uses
the same code that's used elsewhere to handle ip literals, so as a
side effect it can now accept a scope id for nameserver addressed with
link-local scope.
src/network/getnameinfo.c
src/network/lookup.h
src/network/lookup_ipliteral.c [new file with mode: 0644]
src/network/lookup_name.c
src/network/res_msend.c