6lowpan: consider checksum bytes in fragmentation threshold
authorAlan Ott <alan@signal11.us>
Thu, 29 Nov 2012 15:55:44 +0000 (15:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Nov 2012 17:19:24 +0000 (12:19 -0500)
commitb333b7e6ec210412be49d1dc67b62d4e565a0cd6
tree142069aef7a65d4844da5684789eac8a72f2736e
parentfed2c6fd1ffb7b24e55159eb40a5a7330be656c8
6lowpan: consider checksum bytes in fragmentation threshold

Change the threshold for framentation of a lowpan packet from
using the MTU size to now use the MTU size minus the checksum length,
which is added by the hardware. For IEEE 802.15.4, this effectively
changes it from 127 bytes to 125 bytes.

Signed-off-by: Alan Ott <alan@signal11.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c