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

Steven McCoy steven.mccoy at miru.hk
Fri Aug 26 09:48:39 CEST 2011


On 26 August 2011 15:38, Steven McCoy <steven.mccoy at miru.hk> wrote:

> On 22 August 2011 18:15, Martin Sustrik <sustrik at 250bpm.com> wrote:
>
>> On 08/22/2011 12:12 PM, Martin Sustrik wrote:
>>
>> > 3. When trying to bind to lo:5555 strace reports following (Linux):
>> >
>> > bind(10, {sa_family=AF_INET6, sin6_port=htons(5555), inet_pton(AF_INET6,
>> > "::",&sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
>>
>> Same seems to happen with eth0.
>>
>>
> Mine works fine:
>
> *strace ./perf/local_thr tcp://eth0:5555 1 100000*
> ...
> bind(10, {sa_family=AF_INET6, sin6_port=htons(5555), inet_pton(AF_INET6,
> "::", &sin6_addr), sin6_flowinfo=0, *sin6_scope_id=2*}, 28) = 0
>
>
Ok, it is the loopback adapter being "special", go figure

printf ("id for %s has %i but idx %i\n", ifp->ifa_name, sin6_scope_id,
if_nametoindex (ifp->ifa_name));

id for lo has 0 but idx 1
id for eth0 has 2 but idx 2

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


More information about the zeromq-dev mailing list