summaryrefslogtreecommitdiff
path: root/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-02-28 07:32:46 +0100
committerDavid S. Miller <davem@davemloft.net>2014-02-28 17:05:21 -0500
commit02600d0de677b70305393af770a5a46be514e5b8 (patch)
tree0593ea53c72f2488a20b60d42ad6ea7135b77063 /net/ieee802154
parent96cb3eb7a1a5f0c3598500a2348f7d2cc76afbd2 (diff)
6lowpan: change tag type to __be16
Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/6lowpan.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index 872c8f97a30c..6b7d17fd5481 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -68,7 +68,7 @@ static LIST_HEAD(lowpan_devices);
struct lowpan_dev_info {
struct net_device *real_dev; /* real WPAN device ptr */
struct mutex dev_list_mtx; /* mutex for list ops */
- unsigned short fragment_tag;
+ __be16 fragment_tag;
};
struct lowpan_dev_record {
@@ -424,7 +424,8 @@ lowpan_skb_fragmentation(struct sk_buff *skb, struct net_device *dev)
{
int err;
u16 dgram_offset, dgram_size, payload_length, header_length,
- lowpan_size, frag_plen, offset, tag;
+ lowpan_size, frag_plen, offset;
+ __be16 tag;
u8 head[5];
header_length = skb->mac_len;