Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Aug 2001 01:32:42 +0900 (JST)
From:      Hajimu UMEMOTO <ume@mahoroba.org>
To:        roam@ringlet.net
Cc:        net@FreeBSD.org
Subject:   Re: getaddrinfo() returning AF_INET only?
Message-ID:  <20010811.013242.74671505.ume@mahoroba.org>
In-Reply-To: <20010810163757.B14158@ringworld.oblivion.bg>
References:  <20010810163757.B14158@ringworld.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Fri, 10 Aug 2001 16:37:57 +0300
>>>>> Peter Pentchev <roam@ringlet.net> said:

roam> Is there a configuration file or environment variable or some other
roam> way to make getaddrinfo(3) not return AF_INET6 addresses even if
roam> those are available?  I know that most utilities that use getaddrinfo(3)
roam> have an IPv4-only command-line option, but is there a way to turn it
roam> on globally?

There is no option to do so.  But, I believe it shouldn't cause any
problem.

However, current getaddrinfo() doesn't see sortlist at all.  It breaks
backward compatibility against gethostbyname().  So, I'm writing a
code to add sortlist facility to getaddrinfo().  Though the patch I
sent to cvs-all touches only IPv4 address, I have the version which
touches IPv6 address as well here.  Once the patch is applied, you can
write as following into /etc/resolv.conf:

	sortlist 0.0.0.0/0.0.0.0 ::/0

It means I want to see IPv4 address 1st.

There is a discussion at IPng about destination address selection.
This feature may be conflict with it in the future.  So, I'm wandering
if committing it into FreeBSD is better?  Any suggestion?

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@bisd.hitachi.co.jp  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/

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?20010811.013242.74671505.ume>