apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: unrecognized getnameinfo() bugs dealing with IPv4-mapped addresses
Date Thu, 20 May 2004 11:37:00 GMT
Joe Orton wrote:
> On Tue, May 18, 2004 at 04:58:14PM -0400, Jeff Trawick wrote:
> 
>>Previously we went through this mess on older Mac OS X (DNS queries only?)
>>
>>I just realized that the glibc shipping with RHAS 2.1 and 3.0 (and surely 
>>many other Linux distros) has a problem with getnameinfo() for IPv4-mapped 
>>address for something defined in host file but not in DNS.
...
>>Shall we just assume that the GETNAMEINFO_IPV4_MAPPED_FAILS logic can be 
>>used on all platforms (incurring the minor overhead), instead of trying to 
>>be clever?
> 
> 
> Sounds very sensible.  The code can be simplified to avoid a pointer
> dereference too...
> 
> --- network_io/unix/sockaddr.c	4 Mar 2004 16:17:25 -0000	1.49
> +++ network_io/unix/sockaddr.c	19 May 2004 09:19:07 -0000

updated patch attached to remove configure-time logic and protect references to 
IPv6 goodies with APR_HAVE_IPV6...

any comments from the crowd before I commit to both branches?

Mime
View raw message