Date: Thu, 09 Aug 2001 21:34:08 +0900 (JST) From: Hajimu UMEMOTO <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 Message-ID: <20010809.213408.78798491.ume@FreeBSD.org> In-Reply-To: <20010809151815.A36094@sunbay.com> References: <20010809095906.C91485@sunbay.com> <20010809.205147.104122969.ume@FreeBSD.org> <20010809151815.A36094@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Thu, 9 Aug 2001 15:18:15 +0300, >>>>> Ruslan Ermilov <ru@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010809.213408.78798491.ume>