You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "Colm MacCarthaigh,,," <co...@stdlib.net> on 2003/08/15 00:43:23 UTC

Re: Darwin and IPv6 was Re: cvs commit: httpd-2.0/server listen.c

On Thu, Aug 14, 2003 at 05:48:38PM -0400, John K. Sterling wrote:
> On Thursday, August 14, 2003, at 05:20 PM, Colm MacCarthaigh,,, wrote:
> 
> >Can you just confirm it's listening in v6 only ? the output of
> >"netstat -an | grep LISTEN" (Darwin has netstat and grep, right?)
> >should be enough.
> 
> heh.  very funny:
> 
> % netstat -an | grep LISTEN
> tcp46      0      0  *.80                   *.*                    
> LISTEN

good good, patch works so :) In which I'll now cc dev@apr and include 
the neccessary autoconf voodoo to fix OSX/Darwin.

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

Re: Darwin and IPv6 was Re: cvs commit: httpd-2.0/server listen.c

Posted by Colm MacCarthaigh <co...@stdlib.net>.
On Thu, Aug 14, 2003 at 10:45:20PM -0700, Justin Erenkrantz wrote:
> --On Thursday, August 14, 2003 23:43:23 +0100 "Colm MacCarthaigh,,," 
> <co...@stdlib.net> wrote:
> 
> >good good, patch works so :) In which I'll now cc dev@apr and include
> >the neccessary autoconf voodoo to fix OSX/Darwin.
> 
> I'm not entirely sure the getnameinfo() patch is needed on current releases 
> of Darwin.  Host-based authorization *seems* to work without it.

According to my darwin sources, it definitely fixes things for them,
but is fixed with Jaguar I believe.

> Can someone please verify this to make sure I'm not doing something wrong 
> or misunderstanding what the original problem was 10 months ago or whatnot?
> 
> It's very possible this was fixed in a point release since last October. 
> If so, we can allow IPv6 on 10.2.6 and perhaps earlier versions if we can 
> get confirmation on those versions.  And, we *could* also enable it on 
> known-getnameinfo()-broken releases with this patch in place.  But, I'm not 
> really tempted to go that far.  -- justin

Well if it ever does worm it's way in, for the sake of ultra-paranioa
it really needs a ntohl() in the RHS of the assignment. IPv6 stores
everything in network-byte-order, IPv4 structures are stored locally
as host. And you never know someone might just roll out Darwin on Sparc ;p~

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

Re: Darwin and IPv6 was Re: cvs commit: httpd-2.0/server listen.c

Posted by Colm MacCarthaigh <co...@stdlib.net>.
On Thu, Aug 14, 2003 at 10:45:20PM -0700, Justin Erenkrantz wrote:
> --On Thursday, August 14, 2003 23:43:23 +0100 "Colm MacCarthaigh,,," 
> <co...@stdlib.net> wrote:
> 
> >good good, patch works so :) In which I'll now cc dev@apr and include
> >the neccessary autoconf voodoo to fix OSX/Darwin.
> 
> I'm not entirely sure the getnameinfo() patch is needed on current releases 
> of Darwin.  Host-based authorization *seems* to work without it.

According to my darwin sources, it definitely fixes things for them,
but is fixed with Jaguar I believe.

> Can someone please verify this to make sure I'm not doing something wrong 
> or misunderstanding what the original problem was 10 months ago or whatnot?
> 
> It's very possible this was fixed in a point release since last October. 
> If so, we can allow IPv6 on 10.2.6 and perhaps earlier versions if we can 
> get confirmation on those versions.  And, we *could* also enable it on 
> known-getnameinfo()-broken releases with this patch in place.  But, I'm not 
> really tempted to go that far.  -- justin

Well if it ever does worm it's way in, for the sake of ultra-paranioa
it really needs a ntohl() in the RHS of the assignment. IPv6 stores
everything in network-byte-order, IPv4 structures are stored locally
as host. And you never know someone might just roll out Darwin on Sparc ;p~

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

Re: Darwin and IPv6 was Re: cvs commit: httpd-2.0/server listen.c

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Thursday, August 14, 2003 23:43:23 +0100 "Colm MacCarthaigh,,," 
<co...@stdlib.net> wrote:

> good good, patch works so :) In which I'll now cc dev@apr and include
> the neccessary autoconf voodoo to fix OSX/Darwin.

I'm not entirely sure the getnameinfo() patch is needed on current releases 
of Darwin.  Host-based authorization *seems* to work without it.

Can someone please verify this to make sure I'm not doing something wrong 
or misunderstanding what the original problem was 10 months ago or whatnot?

It's very possible this was fixed in a point release since last October. 
If so, we can allow IPv6 on 10.2.6 and perhaps earlier versions if we can 
get confirmation on those versions.  And, we *could* also enable it on 
known-getnameinfo()-broken releases with this patch in place.  But, I'm not 
really tempted to go that far.  -- justin

Re: Darwin and IPv6 was Re: cvs commit: httpd-2.0/server listen.c

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Thursday, August 14, 2003 23:43:23 +0100 "Colm MacCarthaigh,,," 
<co...@stdlib.net> wrote:

> good good, patch works so :) In which I'll now cc dev@apr and include
> the neccessary autoconf voodoo to fix OSX/Darwin.

I'm not entirely sure the getnameinfo() patch is needed on current releases 
of Darwin.  Host-based authorization *seems* to work without it.

Can someone please verify this to make sure I'm not doing something wrong 
or misunderstanding what the original problem was 10 months ago or whatnot?

It's very possible this was fixed in a point release since last October. 
If so, we can allow IPv6 on 10.2.6 and perhaps earlier versions if we can 
get confirmation on those versions.  And, we *could* also enable it on 
known-getnameinfo()-broken releases with this patch in place.  But, I'm not 
really tempted to go that far.  -- justin