Davi Arnaut wrote:
> Joe Orton wrote:
>> On Wed, Jun 06, 2007 at 10:57:00PM +0300, Lucian Adrian Grijincu wrote:
>>> This is the output:
>>> getaddrinfo AF_UNSPEC/SOCK_STREAM/AI_ADDRCONFIG failed
>>> so, yes:     hints.ai_flags = AI_ADDRCONFIG; makes getaddrinfo fail.
>> Just so I can understand the precise nuances of this, can you post the 
>> output of:
>>
>> wget http://people.apache.org/~jorton/gai.c
>> make gai
>> ./gai ::1
>> ./gai ::1 null inet6
>> ./gai -a ::1
>> ./gai -a ::1 null inet6
> 
> 

Solaris:

[EMAIL PROTECTED] x]$ ./gai ::1
getaddrinfo("::1", NULL, {.family=AF_UNSPEC, .hints=0}) = 0:
 family=26, proto= 0 inet6: addr=::1, port=0, flowinfo=0

[EMAIL PROTECTED] x]$ ./gai ::1 null inet6
getaddrinfo("::1", NULL, {.family=AF_INET6, .hints=0}) = 0:
 family=26, proto= 0 inet6: addr=::1, port=0, flowinfo=0

[EMAIL PROTECTED] x]$ ./gai -a ::1
getaddrinfo("::1", NULL, {.family=AF_UNSPEC, .hints=0|AI_ADDRCONFIG}) = 0:
 family=26, proto= 0 inet6: addr=::1, port=0, flowinfo=0

[EMAIL PROTECTED] x]$ ./gai -a ::1 null inet6
getaddrinfo("::1", NULL, {.family=AF_INET6, .hints=0|AI_ADDRCONFIG}) = 0:


Reply via email to