mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
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>
This commit is contained in:
parent
c5d3687f6c
commit
5c00c0cba5
@ -492,6 +492,7 @@ static int lowpan_header_create(struct sk_buff *skb,
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
*hc06_ptr = hdr->hop_limit;
|
*hc06_ptr = hdr->hop_limit;
|
||||||
|
hc06_ptr += 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user