ieee802154: 6lowpan: change datagram var types
authorAlexander Aring <alex.aring@gmail.com>
Wed, 30 Sep 2015 08:20:09 +0000 (10:20 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 30 Sep 2015 11:23:57 +0000 (13:23 +0200)
commit72d53b116264d5e570f610b3971dae4721aa5c0f
tree827f46282aae1be8cab5f4d13ed606ed3934fef6
parent5f2ebb3b59c81a461ffd4921d12e9f6e09c32945
ieee802154: 6lowpan: change datagram var types

This patch changes datagram size variable from u16 type to unsigned int.
The reason is that an IPv6 header has an MAX_UIN16 payload length, but
the datagram size is payload + IPv6 header length. This avoids overflows
at some places.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan/6lowpan_i.h
net/ieee802154/6lowpan/reassembly.c
net/ieee802154/6lowpan/tx.c