]> git.baikalelectronics.ru Git - kernel.git/commit
6lowpan: Fix extraction of flow label field
authorLukasz Duda <lukasz.duda@nordicsemi.no>
Mon, 10 Aug 2015 19:15:52 +0000 (21:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 Aug 2015 18:43:05 +0000 (20:43 +0200)
commit7e9c302624c12aebe34ca25a0298681f83d9ca48
tree8c9afab0a53f6f7ff0c5dd0aa3bfe874789069d7
parent8c9d0e339c29b84797e8bd57636644903bc172d9
6lowpan: Fix extraction of flow label field

The lowpan_fetch_skb function is used to fetch the first byte,
which also increments the data pointer in skb structure,
making subsequent array lookup of byte 0 actually being byte 1.

To decompress the first byte of the Flow Label when the TF flag is
set to 0x01, the second half of the first byte is needed.

The patch fixes the extraction of the Flow Label field.

Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Lukasz Duda <lukasz.duda@nordicsemi.no>
Signed-off-by: Glenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/6lowpan/iphc.c