6lowpan: Change byte order when storing/accessing u16 tag
authorTony Cheneau <tony.cheneau@amnesiak.org>
Wed, 11 Jul 2012 06:51:15 +0000 (06:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 05:51:15 +0000 (22:51 -0700)
commit4576039ffc04ffe672081159a11cf6e0b875a069
tree72d2fb6b5677cdd360b6a735772f250c5069e573
parentd4787a15432384826a0bed42d189fc2a97dc73ea
6lowpan: Change byte order when storing/accessing u16 tag

The tag field should be stored and accessed using big endian byte order (as
intended in the specs). Or else, when displayed with a trafic analyser, such a
Wireshark, the field not properly displayed (e.g. 0x01 00 instead of 0x00 01,
and so on).

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