From 01dc3f4fea73e4df31cc3e3bb1cd5580fc0d7938 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 4 Jun 2014 16:53:39 -0400 Subject: 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/lookup.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/network/lookup.h') 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 -- cgit v1.2.1