Commit b6f82fc0 authored by Alexander Aring's avatar Alexander Aring Committed by David S. Miller

6lowpan: use memcpy to set tag value in fraghdr

Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0234a632
...@@ -265,8 +265,7 @@ lowpan_skb_fragmentation(struct sk_buff *skb, struct net_device *dev) ...@@ -265,8 +265,7 @@ lowpan_skb_fragmentation(struct sk_buff *skb, struct net_device *dev)
/* first fragment header */ /* first fragment header */
head[0] = LOWPAN_DISPATCH_FRAG1 | ((dgram_size >> 8) & 0x7); head[0] = LOWPAN_DISPATCH_FRAG1 | ((dgram_size >> 8) & 0x7);
head[1] = dgram_size & 0xff; head[1] = dgram_size & 0xff;
head[2] = tag >> 8; memcpy(head + 2, &tag, sizeof(tag));
head[3] = tag & 0xff;
/* calc the nearest payload length(divided to 8) for first fragment /* calc the nearest payload length(divided to 8) for first fragment
* which fits into a IEEE802154_MTU * which fits into a IEEE802154_MTU
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment