From 4877ab6b2c91713cc07480742731902d406a1f9d Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Wed, 13 Aug 2003 23:55:21 +0000 Subject: remove |#ifdef AI_ADDRCONFIG| block since AI_ADDRCONFIG may be defined for use with getipnodebyname, but have no meaning when used with getaddrinfo. (patch suggested by wtc) --- pr/src/misc/prnetdb.c | 13 ++++++------- 1 file 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; -- cgit v1.2.1