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

Re: broken IPv6 code



In article <20010108092609.F13627@eye-net.com.au> (at Mon, 8 Jan 2001 09:26:09 +1100), csmall@eye-net.com.au (Craig Small) says:

> > because getipnodebyname() is obsolete function. It's not supported in glibc 2.2
> > and afaik XNET specs treat it as obsolete, too.
> 
:
> So that means the "right" way of doing hostname->IP lookups is with 
> getaddrinfo() with all the lack of functionality as mentioned?

Use getaddrinfo().  getipnodebyname() has been deprecated for
lack of "scope".  New flag for getaddrinfo(), AI_ADDRCONFIG,
will be defined in the successor of RFC2553.
See draft-ietf-ipngwg-rfc2553bis-01.txt.

Note: USAGI glibc's have this functionality.

-- 
Hideaki YOSHIFUJI @ USAGI Project  <yoshfuji@linux-ipv6.org>
PGP5i FP: F731 6599 5EB2 BBA7 1515  1323 1806 A96F 5700 6B25 



Reply to: