diff options
author | alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> | 2012-06-24 23:49:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-25 19:40:31 -0400 |
commit | 5c00c0cba5d4e5371492dda8d642dd4d5788e905 (patch) | |
tree | 51da0a7a8b3cb039a0a8b3345927a3f5106dc700 /net | |
parent | c5d3687f6cfed185c2c0b29a5b33273ebd2c0781 (diff) |
6lowpan: fix hop limit compression
Add missing pointer shift for the 'default' case.
Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Cc: Tony Cheneau <tony.cheneau+zigbeedev@amnesiak.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ieee802154/6lowpan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 5c7bcf9663d3..b45e229bc42c 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c | |||
@@ -492,6 +492,7 @@ static int lowpan_header_create(struct sk_buff *skb, | |||
492 | break; | 492 | break; |
493 | default: | 493 | default: |
494 | *hc06_ptr = hdr->hop_limit; | 494 | *hc06_ptr = hdr->hop_limit; |
495 | hc06_ptr += 1; | ||
495 | break; | 496 | break; |
496 | } | 497 | } |
497 | 498 | ||