]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3619503472ce04aee4c24681026734f6ec41beb3
tree66128ae6c14ecaba27c51ea148050a83af87cf50
parenta787eea2cd519ddc03f14fbfbfac1745eb8d743f
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 caff45a049ad1 ("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