apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davi Arnaut <d...@haxent.com.br>
Subject Re: getaddrinfo on Ubuntu
Date Wed, 06 Jun 2007 22:20:44 GMT
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:

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

[akojima@sunfire280 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

[akojima@sunfire280 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

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



Mime
View raw message