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

Re: getaddrinfo and IPv6/IPv4 addresses



On Sun, 9 Jan 2000, Philip Blundell wrote:

> >Sometimes, getaddrinfo() returns a proper IPv6 address of the form
> >::ffff:xx.xx.xx.xx, with the x'es being the IPv4 address. At other times,
> >the call to getaddrinfo() fails with the error EAI_NODATA, "No address
> >associated with hostname".
> 
> I believe that the latter is the correct behaviour.  Do you have nscd running 
> on this machine, or anything unusual in nsswitch.conf?

nscd, yes. nsswitch.conf is completely unchanged from debian defaults. So
what I have to do in my application is to use PF_UNSPEC and convert the
IPv4 address myself?

Regards,

Pontus

-- 
Pontus Lidman, pontus@mathcore.com, Software Engineer
No matter how cynical you get, it's impossible to keep up.
Scene: www.dc-s.com | MUD: tyme.envy.com 6969 | irc: irc.quakenet.eu.org


Reply to: