[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: broken IPv6 code



On Sun, Jan 07, 2001 at 11:13:03PM +0100, Arkadiusz Miskiewicz wrote:
> On/Dnia Mon, Jan 08, 2001 at 09:10:16AM +1100, Craig Small wrote/napisa³(a)
> > > 1. getaddrinfo should not return IPv4 addresses if an IPv6 address exist,
> > > since using the IPv6 address implies usage of the IPv4 address.
> > Why not use getipnodebyname()? You got a whole bunch of flags you can
> > set to determine what sort of address you are after.
> because getipnodebyname() is obsolete function. It's not supported in glibc 2.2
> and afaik XNET specs treat it as obsolete, too.

XNET? I don't know what that is.
RFC 2553 describes this function. It used to be the gethostbyname3.
The poor thing didn't last too long.
So that means the "right" way of doing hostname->IP lookups is with 
getaddrinfo() with all the lack of functionality as mentioned?

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/        <csmall@eye-net.com.au>
MIEEE <csmall@ieee.org>                 Debian developer <csmall@debian.org>



Reply to: