On Tue, Aug 12, 2003 at 09:44:36AM -0700, Justin Erenkrantz wrote:
> --On Tuesday, August 12, 2003 5:33 PM +0100 "Colm MacCarthaigh,,," 
> <[EMAIL PROTECTED]> wrote:
> 
> >This is good though, if v6 is available and we can't listen there
> >then it should exit!
> 
> Let me re-state what I think the root cause of this is:
> 
> IPv6 stack is available on Solaris
> No IPv6 interfaces are currently configured

Even lo0 ? That's hard ;)

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.

It's probably worth working around, but tbh I'd be of the opinion
that v6 not binding is just a serious an error as having v4 support
configured and not having any ipv4 addresses. It's very much a 
broken system configuration.

> So, IPv6 *could* be available, but it isn't.  I think we're making the 
> assumption that if the OS provides an IPv6 stack that we *must* use IPv6. 
> That seems broken.  We should intelligently fail-over to IPv4. 

That's the job of getaddrinfo. By rights getaddrinfo should be
clever enough to return the correct linked list no matter what.
Pity it isnt :/

-- 
Colm MacC�rthaigh                        Public Key: [EMAIL PROTECTED]
[EMAIL PROTECTED]                                         http://www.stdlib.net/

Reply via email to