httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colm MacCarthaigh,,," <colmm...@stdlib.net>
Subject Re: [PATCH] Default Listen with IPv6 enabled incorrect
Date Tue, 12 Aug 2003 16:33:48 GMT
On Tue, Aug 12, 2003 at 09:02:52AM -0700, Justin Erenkrantz wrote:
> Nope, it's getaddrinfo('::', AF_INET6, 0) that causes the failure.  Are we 
> sure that '::' is standard?  I couldn't find any documentation to support 
> that.

It's not standard, but there isnt an implementor out there who
doesnt use it. That said using it is still a bad idea, since
there's nothing that mandates an implementor to using that
address.

RFC3493 standardises in6addr_any and IN6ADDR_ANY_INIT, which
are much better suited to the purpose. 

> >It isn't quite that simple.  If there is a non-qualified address in the
> >config, we try to figure out if the box supports IPv6, and if it does then
> >we get an IPv6 listening socket for that port.
> 
> But, if the IPv6 fails, we should go back to IPv4.  Instead, we just exit.

This is good though, if v6 is available and we can't listen there
then it should exit!

> getaddrinfo(NULL, AF_INET6, 0)
> 
> works on Solaris, but:
> 
> getaddrinfo('::', AF_INET6, 0)

This is broken, definitely. 

-- 
Colm MacCárthaigh                        Public Key: colm+pgp@stdlib.net
colm@stdlib.net					  http://www.stdlib.net/

Mime
View raw message