summaryrefslogtreecommitdiff
path: root/src/network/lookup.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-06-04 16:53:39 -0400
committerRich Felker <dalias@aerifal.cx>2014-06-04 16:53:39 -0400
commit01dc3f4fea73e4df31cc3e3bb1cd5580fc0d7938 (patch)
tree2f2df4e89bd0f01b63fda221ef9e6f147367afd9 /src/network/lookup.h
parent934aa1350b96461f205ad69c95e8f6f035f6b62c (diff)
downloadmusl-01dc3f4fea73e4df31cc3e3bb1cd5580fc0d7938.tar.gz
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.
Diffstat (limited to 'src/network/lookup.h')
-rw-r--r--src/network/lookup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/lookup.h b/src/network/lookup.h
index 82c969ec..19c9e488 100644
--- a/src/network/lookup.h
+++ b/src/network/lookup.h
@@ -22,5 +22,6 @@ struct service {
int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int flags);
int __lookup_name(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, int flags);
+int __lookup_ipliteral(struct address buf[static 1], const char *name, int family);
#endif