]> 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)
commit6a4e9f9824f20195af6d0c4a81579685f0c48b8c
tree8f92e75d5336d2b64a2359f50154c0752fb60fd3
parent8c2304f1f09de18b3e2ba813a21a6c1f7dc64ef8
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