summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarin%meer.net <devnull@localhost>2003-08-13 23:55:21 +0000
committerdarin%meer.net <devnull@localhost>2003-08-13 23:55:21 +0000
commit4877ab6b2c91713cc07480742731902d406a1f9d (patch)
tree64805f743e7c6f00acce19fb44d2a198bbbcf11e
parentc812d5520643de3564e6450ef6ca026c6e8ffb7a (diff)
downloadnspr-hg-NSPR_GETADDRINFO_BRANCH.tar.gz
remove |#ifdef AI_ADDRCONFIG| block since AI_ADDRCONFIG may be definedNSPR_GETADDRINFO_BRANCH
for use with getipnodebyname, but have no meaning when used with getaddrinfo. (patch suggested by wtc)
-rw-r--r--pr/src/misc/prnetdb.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/pr/src/misc/prnetdb.c b/pr/src/misc/prnetdb.c
index d84d4d0d..99e6ccd6 100644
--- a/pr/src/misc/prnetdb.c
+++ b/pr/src/misc/prnetdb.c
@@ -2075,17 +2075,16 @@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInfoByName(const char *hostname,
PRADDRINFO *res, hints;
PRStatus rv;
+ /*
+ * we assume a RFC 2553 compliant getaddrinfo. this may at some
+ * point need to be customized as platforms begin to adopt the
+ * RFC 3493.
+ */
+
memset(&hints, 0, sizeof(hints));
hints.ai_flags = AI_CANONNAME;
hints.ai_family = AF_UNSPEC;
-#ifdef AI_ADDRCONFIG
- /* By default, only look up addresses using address types for
- * which a local interface is configured (i.e. no IPv6 if no IPv6
- * interfaces. NOTE: do this only if ai_family is PF_UNSPEC. */
- hints.ai_flags |= AI_ADDRCONFIG;
-#endif
-
rv = GETADDRINFO(hostname, NULL, &hints, &res);
if (rv == 0)
return (PRAddrInfo *) res;