[zeromq-dev] [PATCH] IPv6 changes to 4.0

Steven McCoy steven.mccoy at miru.hk
Mon Aug 22 15:31:03 CEST 2011


On 22 August 2011 20:33, Martin Sustrik <sustrik at 250bpm.com> wrote:

> On 08/22/2011 02:18 PM, Steven McCoy wrote:
>
>  Then it gets in6addr_any:sin6_scope_id so theoretically if the OS
>> supported it bind would bind to the NIC.  However on Linux you need to
>> use SO_BINDTODEVICE which requires CAP_NET_RAW to run.  Hence the
>> examples in the initial post.
>>
>
> Why not simply bind to the IPv6 address as returned by getifaddrs?
>
>
Because you can easily have 2-4 IPv6 addresses per adapter.  You always have
the link-local scope one, but when you add real routable addressing you can
end up with a lot more.  I think my Sparc has four or five and that's in the
minimum configuration.  When the Sparc is up and running with its IPv6
router it then proceeds to hand out another IPv6 address to everyone else on
the network.  Linux can have static IPv6 addresses so it gains another.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110822/60c379c0/attachment.htm>


More information about the zeromq-dev mailing list