kern/111513: [netinet6] [patch] in6_setscope() sets scope
flags wrong
Thomas Karcher
thkarcher at gmx.de
Thu Apr 19 11:52:52 UTC 2007
Hi,
> Synopsis: [netinet6] [patch] in6_setscope() sets scope flags wrong
> State-Changed-From-To: open->closed
> State-Changed-By: remko
> State-Changed-When: Thu Apr 19 05:21:46 UTC 2007
> State-Changed-Why:
> George and Hajimu regard this as an implementation choice and are not
> seeing a bug here. Reflect that in the ticket state -> clsoed.
> http://www.freebsd.org/cgi/query-pr.cgi?pr=111513
I strongly disagree since an implementation choice should not yield
different results.
Perhaps George and Hajimu overlooked the use of s6_addr8[1] instead of
s6_addr16[1].
in6->s6_addr16[1] = htons(zoneid & 0xffff);
^^
results in ff00:0002:.... which is wrong while
in6->s6_addr8[1] = htons(zoneid & 0xff);
^
results in ff02:.... which is definitely different!
It would be interesting to hear why they think it is an implementation
choice when it leads to different results.
Best regards,
Thomas
More information about the freebsd-bugs
mailing list