]> git.baikalelectronics.ru Git - kernel.git/commit
6lowpan: fix first fragment (FRAG1) handling
authorTony Cheneau <tony.cheneau@amnesiak.org>
Mon, 25 Mar 2013 17:59:26 +0000 (17:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Mar 2013 16:37:57 +0000 (12:37 -0400)
commit122e15434f2aa9b5025ad3eeda96a2480ce1039b
tree2ef77fb92782bf1b5e7dfe1f11e83488e3c473d6
parent5f5d00238eb00ee145cb190d191966793d26bdca
6lowpan: fix first fragment (FRAG1) handling

The first fragment, FRAG1, must contain some payload according to the
specs. However, as it is currently written, the first fragment will
remain empty and only contain the 6lowpan headers.

This patch also extracts the transport layer information from the first
fragment. This information is used later on when uncompressing UDP
header.

Thanks to Wolf-Bastian Pöttner for noticing that the offset value was
not properly initialized.

Signed-off-by: Tony Cheneau <tony.cheneau@amnesiak.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c