From owner-cvs-all Thu Aug 9 5:34:17 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 088F537B401; Thu, 9 Aug 2001 05:34:11 -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 VAA05046; Thu, 9 Aug 2001 21:34:10 +0900 (JST) Received: from mlgw3 by mlgw2.system.hitachi.co.jp (8.9.3/3.7W-mlgw2) id VAA29264; Thu, 9 Aug 2001 21:33:58 +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 VAA07730; Thu, 9 Aug 2001 21:34:09 +0900 (JST) (envelope-from ume@FreeBSD.org) Received: from localhost (IDENT:8UKSIT9MBeLRY7H/tSqSV8CnOguYe8GS67v8vyM2IDVIXd4Fn6w3tCAi/VsdIgUK@localhost [::1]) by plum.ssr.bisd.hitachi.co.jp (8.11.3/8.11.3/plum) with ESMTP/inet6 id f79CY8P93954; Thu, 9 Aug 2001 21:34:08 +0900 (JST) (envelope-from ume@FreeBSD.org) Date: Thu, 09 Aug 2001 21:34:08 +0900 (JST) Message-Id: <20010809.213408.78798491.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: <20010809151815.A36094@sunbay.com> References: <20010809095906.C91485@sunbay.com> <20010809.205147.104122969.ume@FreeBSD.org> <20010809151815.A36094@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:18:15 +0300, >>>>> Ruslan Ermilov said: ru> > ru> How about implementing these as wrappers to get{addr,name}info(3)? ru> > ru> > Sorry but I cannot imagin your idea. Dou you mean application may ru> > call such wrapper function instead of getaddrinfo()? If so, it means ru> > we create new API and it affects many applications. I think it ru> > shouldn't. ru> > ru> Nope, I mean what if we implement gethostby*() using get*info(), ru> internally? I see. It may good idea to wipe out duplicate functionality internally. However, it doesn't solve the problem. As premise, gethostbyname() cannot treat AF_INET6 and AF_UNSPEC. This is a reason why we should use getaddrinfo() instead of gethostbyname() from IPv6 perspective. -- 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