httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jus...@erenkrantz.com>
Subject Re: [PATCH] Default Listen with IPv6 enabled incorrect
Date Tue, 12 Aug 2003 17:12:45 GMT
--On Tuesday, August 12, 2003 5:58 PM +0100 "Colm MacCarthaigh,,," 
<colmmacc@stdlib.net> wrote:

> Even lo0 ? That's hard ;)

% ifconfig -a6
%

> if getaddrinfo for PF_UNSPEC returns '::' in this situation
> then it's really a lib(c|socket|nsl) bug, it does this on
> Linux aswell, but the KAME implementation (and I believe windows)
> have it fixed.

No, the OS is not returning '::'.  We're not using PF_UNSPEC, but hard-coding 
PF_INET6.  (AF_INET6, AP_INET6, whatever the #define is.)

In alloc_listener, we're hardcoding '::' and PF_INET6 unconditionally if the 
OS supports IPv6 (as determined by find_default_family).  (See the !addr 
branch.)

I have a hunch that we may be able to create ephemeral ports (NULL address 
passed in) without a configured IPv6 interface on Solaris.  Which strikes me 
as not being totally wrong on Solaris's part.

I still maintain that my patch should be applied.  Let PF_UNSPEC figure it 
out.  -- justin

Mime
View raw message