From owner-freebsd-net Wed Aug 1 5: 1:44 2001 Delivered-To: freebsd-net@freebsd.org Received: from assaris.sics.se (assaris.sics.se [193.10.66.234]) by hub.freebsd.org (Postfix) with ESMTP id 1EECD37B403 for ; Wed, 1 Aug 2001 05:01:33 -0700 (PDT) (envelope-from assar@assaris.sics.se) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id OAA82195; Wed, 1 Aug 2001 14:00:59 +0200 (CEST) (envelope-from assar) To: Ian Dowse Cc: itojun@iijlab.net, freebsd-net@FreeBSD.ORG, Bernd Walter , Hajimu UMEMOTO Subject: Re: how to get AF_LOCAL from getaddrinfo() References: <200107161844.aa52089@salmon.maths.tcd.ie> From: Assar Westerlund Date: 01 Aug 2001 14:00:59 +0200 In-Reply-To: Ian Dowse's message of "Mon, 16 Jul 2001 18:44:39 +0100" Message-ID: <5lg0bct2f8.fsf@assaris.sics.se> Lines: 14 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ian Dowse writes: > Another important reason to add this feature is for compatibility > with other platforms' getaddrinfo() implementations. I just tried > a random Linux box here, and it seems to have very similar behaviour > to that implemented by my patch. There is also the general idea > that the way to encourage people to use a "preferred" interface is > to make it useful in as many situations as possible :-) Note that glibc just commented out PF_LOCAL support. But before that, getaddrinfo PF_UNSPEC actually could return PF_LOCAL addresses, which I think is not obvious and kind of wrong. Having it work for ai_family == PF_LOCAL seems ok to me. /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message