]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/bluetooth/6lowpan.c
Bluetooth: 6lowpan: Ensure header compression does not corrupt IPv6 header
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Mon, 29 Sep 2014 13:37:25 +0000 (16:37 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 29 Sep 2014 15:06:38 +0000 (17:06 +0200)
commit36b3dd250dde5317fa6bb8c9010e1e7ab7f2265a
tree66128ae6c14ecaba27c51ea148050a83af87cf50
parent59790aa2873cb3c32db02c777f08eb19faccf5fa
Bluetooth: 6lowpan: Ensure header compression does not corrupt IPv6 header

If skb is going to multiple destinations, then make sure that we
do not overwrite the common IPv6 headers. So before compressing
the IPv6 headers, we copy the skb and that is then sent to 6LoWPAN
Bluetooth devices.

This is a similar patch as what was done for IEEE 802.154 6LoWPAN
in commit f19f4f9525cf3 ("ieee802154: 6lowpan: ensure header compression
does not corrupt ipv6 header")

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c