From owner-freebsd-net Fri Aug 10 9:33: 5 2001 Delivered-To: freebsd-net@freebsd.org Received: from peace.mahoroba.org (peace.calm.imasy.or.jp [202.227.26.34]) by hub.freebsd.org (Postfix) with ESMTP id C8E2737B403 for ; Fri, 10 Aug 2001 09:33:00 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:nyBQMn+gVM+41X6uuVJw6GZGUSjOGLtxdcwUWi5vEL/DbJ94loPeKSr+bfEkwSec@localhost [::1]) (authenticated as ume with CRAM-MD5) by peace.mahoroba.org (8.11.5/8.11.5/peace) with ESMTP/inet6 id f7AGWkU44804; Sat, 11 Aug 2001 01:32:46 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sat, 11 Aug 2001 01:32:42 +0900 (JST) Message-Id: <20010811.013242.74671505.ume@mahoroba.org> To: roam@ringlet.net Cc: net@FreeBSD.org Subject: Re: getaddrinfo() returning AF_INET only? From: Hajimu UMEMOTO In-Reply-To: <20010810163757.B14158@ringworld.oblivion.bg> References: <20010810163757.B14158@ringworld.oblivion.bg> X-Mailer: xcite1.38> Mew version 1.95b119 on Emacs 20.7 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-Operating-System: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Hi, >>>>> On Fri, 10 Aug 2001 16:37:57 +0300 >>>>> Peter Pentchev 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