Skip site navigation (1)Skip section navigation (2)
Date:      01 Aug 2001 14:00:59 +0200
From:      Assar Westerlund <assar@FreeBSD.ORG>
To:        Ian Dowse <iedowse@maths.tcd.ie>
Cc:        itojun@iijlab.net, freebsd-net@FreeBSD.ORG, Bernd Walter <ticso@mail.cicely.de>, Hajimu UMEMOTO <ume@mahoroba.org>
Subject:   Re: how to get AF_LOCAL from getaddrinfo()
Message-ID:  <5lg0bct2f8.fsf@assaris.sics.se>
In-Reply-To: Ian Dowse's message of "Mon, 16 Jul 2001 18:44:39 %2B0100"
References:  <200107161844.aa52089@salmon.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
Ian Dowse <iedowse@maths.tcd.ie> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5lg0bct2f8.fsf>