Closed GoogleCodeExporter closed 8 years ago
Original comment by philip.l...@gmail.com
on 21 Feb 2011 at 8:18
Original comment by philip.l...@gmail.com
on 21 Feb 2011 at 8:18
I remember this from a while back -- I think what you're quoting is on lines
42-48, which looks different correct to me in the repo (both the branch and
tinyos trunk). The use at 91 and 92 however looks like they should be htons
instead.
It seems right in both trunk/ and the blip-rpl-devel branch -- maybe I'm
missing it? I did a bunch of work on the addressing code that appears in the
branch to properly form link-local addresses with the U/L bit.
Original comment by sdh...@gmail.com
on 21 Feb 2011 at 8:31
How very strange... I am sure that I used web access and was looking at trunk...
Anyway - here is another example furter down in the code
with ntohs on a constant
if (addr->s6_addr16[0] == htons(0xfe80)) {
// link-local
if (m_short_addr &&
addr->s6_addr16[5] == ntohs(0x00FF) &&
addr->s6_addr16[6] == ntohs(0xFE00)) {
if (ntohs(addr->s6_addr16[4]) == panid &&
ntohs(addr->s6_addr16[7]) == saddr) {
Original comment by rogjo...@gmail.com
on 21 Feb 2011 at 11:51
Agreed there. just committed to my branch; will be merging with core
relatively soon (next week-ish) so it will get merged in then and avoid any
conflicts. Changed to fixed; you can move it back if you find other instances.
Thanks.
Original comment by sdh...@gmail.com
on 22 Feb 2011 at 12:28
Original issue reported on code.google.com by
rogjo...@gmail.com
on 18 Feb 2011 at 8:49