]> git.baikalelectronics.ru Git - kernel.git/commit
6lowpan: fix fragmentation on sending side
authorAlexander Aring <alex.aring@gmail.com>
Fri, 28 Feb 2014 06:32:45 +0000 (07:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Feb 2014 22:05:21 +0000 (17:05 -0500)
commit03ff2c5d4ed16126eae4f9bf8f5ee63bb9ba4536
tree9961f2a93ce6b067afe76a9253fa552f9c1d173f
parent7dee2ffec21787842a773ac203f4669149f91eff
6lowpan: fix fragmentation on sending side

This patch fix the fragmentation on sending side according to rfc4944.

Also add improvement to use the full payload of a PDU which calculate
the nearest divided to 8 payload length for the fragmentation datagram
size attribute.

The main issue is that the datagram size of fragmentation header use the
ipv6 payload length, but rfc4944 says it's the ipv6 payload length inclusive
network header size (and transport header size if compressed).

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c