diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-06 11:00:51 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-25 07:56:22 +0200 |
commit | f870b8c6314c85712ff1e82765a902d895b73f21 (patch) | |
tree | c797d7c6bf992b63433a43c68b159a60eb41379d /net/ieee802154/reassembly.h | |
parent | cd97a713acbc1b63feb67ba137c3b827fa4f2308 (diff) | |
download | lwn-f870b8c6314c85712ff1e82765a902d895b73f21.tar.gz lwn-f870b8c6314c85712ff1e82765a902d895b73f21.zip |
ieee802154: reassembly: fix tag byteorder
This patch fix byte order handling in reassembly code of 802.15.4
6LoWPAN fragmentation handling.
net/ieee802154/reassembly.c:58:43: warning: restricted __be16 degrades to integer
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reported-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/reassembly.h')
-rw-r--r-- | net/ieee802154/reassembly.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ieee802154/reassembly.h b/net/ieee802154/reassembly.h index 74e4a7c98191..836b16fa001f 100644 --- a/net/ieee802154/reassembly.h +++ b/net/ieee802154/reassembly.h @@ -4,7 +4,7 @@ #include <net/inet_frag.h> struct lowpan_create_arg { - __be16 tag; + u16 tag; u16 d_size; const struct ieee802154_addr *src; const struct ieee802154_addr *dst; @@ -15,7 +15,7 @@ struct lowpan_create_arg { struct lowpan_frag_queue { struct inet_frag_queue q; - __be16 tag; + u16 tag; u16 d_size; struct ieee802154_addr saddr; struct ieee802154_addr daddr; |