Re: IPv6 && getaddrinfo(3C)

2012-07-13 Thread Matthias Apitz
El día Thursday, July 12, 2012 a las 09:01:50PM -0500, Robert Bonomi escribió: > > > req.ai_flags = AI_ADDRCONFIG|AI_NUMERICHOST; > > > req.ai_family = AF_INET6;/* Same as AF_INET6. */ > > Isn't the setting of 'req.ai_family', above, going to guarantee that > something that "looks lik

Re: IPv6 && getaddrinfo(3C)

2012-07-12 Thread Robert Bonomi
> From: Doug Hardie > Date: Thu, 12 Jul 2012 14:21:38 -0700 > Subject: Re: IPv6 && getaddrinfo(3C) > > On 12 July 2012, at 07:24, Matthias Apitz wrote: > > > Hello, > > > > I'm playing around with IPv6 code on a FreeBSD 9 system and can'

Re: IPv6 && getaddrinfo(3C)

2012-07-12 Thread Doug Hardie
On 12 July 2012, at 07:24, Matthias Apitz wrote: > > Hello, > > I'm playing around with IPv6 code on a FreeBSD 9 system and can't get > getaddrinfo(3C) to do what it should do as stated in its man page: > accept an IPv6 and IPv4 IP addr, it only works with the IPv6 form: > > $ ./a.out ::1 > ho

IPv6 && getaddrinfo(3C)

2012-07-12 Thread Matthias Apitz
Hello, I'm playing around with IPv6 code on a FreeBSD 9 system and can't get getaddrinfo(3C) to do what it should do as stated in its man page: accept an IPv6 and IPv4 IP addr, it only works with the IPv6 form: $ ./a.out ::1 host: ::1 read: SSH-2.0-OpenSSH_5.6p1 FreeBSD-2010 $ ./a.out 127.0.