From owner-cvs-all Thu Aug 9 6:11:23 2001 Delivered-To: cvs-all@freebsd.org Received: from hitpro.hitachi.co.jp (hitpro.hitachi.co.jp [133.145.224.7]) by hub.freebsd.org (Postfix) with ESMTP id 5F9B537B403; Thu, 9 Aug 2001 06:11:09 -0700 (PDT) (envelope-from ume@FreeBSD.org) Received: from mlgw2.system.hitachi.co.jp by hitpro.hitachi.co.jp (8.9.3/3.7W-hitpro) id WAA12559; Thu, 9 Aug 2001 22:11:08 +0900 (JST) Received: from mlgw3 by mlgw2.system.hitachi.co.jp (8.9.3/3.7W-mlgw2) id WAA05138; Thu, 9 Aug 2001 22:10:56 +0900 (JST) Received: from plum.ssr.bisd.hitachi.co.jp by bisdgw.bisd.hitachi.co.jp (8.9.3+3.2W/3.7W-bisdgw) with ESMTP id WAA08536; Thu, 9 Aug 2001 22:11:08 +0900 (JST) (envelope-from ume@FreeBSD.org) Received: from localhost (IDENT:Lnfsh1PTEZeAHX7WKhoFhWr+Gfx63CYGuq5uZYQoOt8PqVFjisWOZshxq5HjE9s3@localhost [::1]) by plum.ssr.bisd.hitachi.co.jp (8.11.3/8.11.3/plum) with ESMTP/inet6 id f79DB6P94052; Thu, 9 Aug 2001 22:11:07 +0900 (JST) (envelope-from ume@FreeBSD.org) Date: Thu, 09 Aug 2001 22:11:06 +0900 (JST) Message-Id: <20010809.221106.112533864.ume@FreeBSD.org> To: ru@FreeBSD.org Cc: Jim.Pirzyk@disney.com, sheldonh@starjuice.net, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/net gethostbyname.3 From: Hajimu UMEMOTO In-Reply-To: <20010809155304.D36094@sunbay.com> References: <20010809151815.A36094@sunbay.com> <20010809.213408.78798491.ume@FreeBSD.org> <20010809155304.D36094@sunbay.com> X-Mailer: Mew version 1.95b119 on Emacs 20.7 / Mule 4.1 =?iso-2022-jp?B?KBskQjAqGyhCKQ==?= X-PGP-Fingerprint: D3 3D D3 54 88 13 DE 22 3F 31 C4 4D A1 08 84 7B X-PGP-Public-Key: http://www.imasy.org/~ume/ume@bisd.hitachi.co.jp.asc X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 4.3-RELEASE Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> On Thu, 9 Aug 2001 15:53:04 +0300, >>>>> Ruslan Ermilov said: ru> On Thu, Aug 09, 2001 at 09:34:08PM +0900, Hajimu UMEMOTO wrote: ru> > >>>>> On Thu, 9 Aug 2001 15:18:15 +0300, ru> > >>>>> Ruslan Ermilov said: ru> > ru> > ru> > ru> How about implementing these as wrappers to get{addr,name}info(3)? ru> > ru> > ru> > ru> > Sorry but I cannot imagin your idea. Dou you mean application may ru> > ru> > call such wrapper function instead of getaddrinfo()? If so, it means ru> > ru> > we create new API and it affects many applications. I think it ru> > ru> > shouldn't. ru> > ru> > ru> > ru> Nope, I mean what if we implement gethostby*() using get*info(), ru> > ru> internally? ru> > ru> > I see. It may good idea to wipe out duplicate functionality ru> > internally. However, it doesn't solve the problem. As premise, ru> > gethostbyname() cannot treat AF_INET6 and AF_UNSPEC. This is a reason ru> > why we should use getaddrinfo() instead of gethostbyname() from IPv6 ru> > perspective. ru> > ru> Grr, am I saying the opposite? I am all along with you on these. ru> And implementing gethostbyname(), gethostbyname2(), and gethostbyaddr() ru> functions internally using getaddrinfo() and getnameinfo() would be ru> a good step towards this. ru> ru> (I mean, make them a special case of get*info() functions.) I might miss to read you. Indeed, getaddrinfo() had been calling getipnodebyname() or gethostbyname2() internally, past days. But, we knew it caused DNS query order problem. So, getaddrinfo() was rewritten to call res_* functions directly. Don't you remember the problem around 4.0-RELEASE? -- 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 cvs-all" in the body of the message