Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Aug 2001 22:11:06 +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.221106.112533864.ume@FreeBSD.org>
In-Reply-To: <20010809155304.D36094@sunbay.com>
References:  <20010809151815.A36094@sunbay.com> <20010809.213408.78798491.ume@FreeBSD.org> <20010809155304.D36094@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Thu, 9 Aug 2001 15:53:04 +0300,
>>>>> Ruslan Ermilov <ru@FreeBSD.org> 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 <ru@FreeBSD.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010809.221106.112533864.ume>