From owner-freebsd-net Sun Aug 12 22:12:45 2001 Delivered-To: freebsd-net@freebsd.org Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by hub.freebsd.org (Postfix) with ESMTP id 34C0537B408 for ; Sun, 12 Aug 2001 22:12:41 -0700 (PDT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost ([3ffe:501:100f:13ff::a]) by shuttle.wide.toshiba.co.jp (8.9.1+3.1W/8.9.1) with ESMTP id OAA13702; Mon, 13 Aug 2001 14:15:25 +0900 (JST) Date: Mon, 13 Aug 2001 06:15:49 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: Hajimu UMEMOTO Cc: roam@ringlet.net, net@FreeBSD.ORG Subject: Re: getaddrinfo() returning AF_INET only? In-Reply-To: <20010811.013242.74671505.ume@mahoroba.org> References: <20010810163757.B14158@ringworld.oblivion.bg> <20010811.013242.74671505.ume@mahoroba.org> User-Agent: Wanderlust/2.5.8 (Smooth) Emacs/21.0 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 980905(IM100) Lines: 43 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 >>>>> On Sat, 11 Aug 2001 01:32:42 +0900 (JST), >>>>> Hajimu UMEMOTO 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. I also want to know why the original requester wanted to disable IPv6. Is it just a personal preference, or is there any essential problems with listing (and preferring) IPv6 addresses? > 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? Recent KAME snaps have (partial) support of the destination address selection algorithm. At this moment, however, it does not support the flexible policy table, which is a generalization of the sortlist mechanism. Since the policy table has really an extension of sortlist, we will not be able to just reuse sortlist as an implementation of the table, when we add full support of the policy table. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message