Macosx ipv6 issue

Michael McMahon michael.x.mcmahon at oracle.com
Wed Dec 14 15:13:04 PST 2011


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?

Thanks
Michael.


More information about the macosx-port-dev mailing list