Re: [PATCH bluetooth-next] ieee802154: handle datagram variables as u16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alex,

> This reverts commit 9abc378c66e3d6f437eed77c1c534cbc183523f7
> ("ieee802154: 6lowpan: change datagram var types").
> 
> The reason is that I forgot the IPv6 fragmentation here. Our MTU of
> lowpan interface is 1280 and skb->len should not above of that. If we
> reach a payload above 1280 in IPv6 header then we have a IPv6
> fragmentation above 802.15.4 6LoWPAN fragmentation. The type "u16" was
> fine, instead I added now a WARN_ON_ONCE if skb->len is above MTU which
> should never happen otherwise IPv6 on minimum MTU size is broken.
> 
> Signed-off-by: Alexander Aring <alex.aring@xxxxxxxxx>
> ---
> net/ieee802154/6lowpan/6lowpan_i.h  |  4 ++--
> net/ieee802154/6lowpan/reassembly.c |  2 +-
> net/ieee802154/6lowpan/tx.c         | 10 ++++++----
> 3 files changed, 9 insertions(+), 7 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux