]> git.baikalelectronics.ru Git - kernel.git/commit
6lowpan: Change byte order when storing/accessing to len field
authorTony Cheneau <tony.cheneau@amnesiak.org>
Wed, 11 Jul 2012 06:51:16 +0000 (06:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 05:52:02 +0000 (22:52 -0700)
commit019e12d956a598955cb2f4bba8df9d2d357fd0b3
tree8f92e75d5336d2b64a2359f50154c0752fb60fd3
parent359ad23894466978e74a91960acc9f4449fc6204
6lowpan: Change byte order when storing/accessing to len field

Lenght field should be encoded using big endian byte order, such as intend in the specs.
As it is currently written, the len field would not be decoded properly on an implementation using the correct byte ordering. Hence, it could lead to interroperability issues.

Also, I rewrote the code so that iphc0 argument of lowpan_alloc_new_frame could be removed.

Signed-off-by: Tony Cheneau <tony.cheneau@amnesiak.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c