Macosx ipv6 issue

Mike Swingler swingler at apple.com
Mon Dec 19 11:48:52 PST 2011


On Dec 14, 2011, at 3:13 PM, Michael McMahon wrote:

> Mike,
> 
> I've been looking at an issue with the Mac IPv6 stack. Basically, with certain types of IPv6 address,
> code that calls socket bind() or connect() needs to specify a scope id (zone), which tells the system which
> interface the operation should be performed on. This basically works fine except when no scope_id
> is specified. In that case we need to use a default. It appears that the os should do the right thing.
> There is a sysctl parameter related to this, which is disabled by default "net.inet6.ip6.use_defaultzone"
> but enabling it doesn't seem to make any difference.
> 
> I've noticed from the kernel source that the code which uses this flag is conditionally compiled
> (in netinet6/scope6.c). So, my question is can you find out if this is the case (that it's not compiled
> into the kernel). And maybe also if there might be plans to change this?

I honestly have no idea.

I'd suggest asking on <http://lists.apple.com/mailman/listinfo2/darwin-kernel> or <http://lists.apple.com/mailman/listinfo2/darwin-userlevel>. Anyone else have any suggestions on good resources for IPv6 Mac OS X debugging?

Sorry I couldn't be more helpful,
Mike Swingler
Apple Inc.



More information about the macosx-port-dev mailing list