linux-hardened/net/ieee802154
Alexander Aring 51263fffad 6lowpan_rtnl: fix fragmentation with two fragments
This patch fix the 6LoWPAN fragmentation for the case if we have exactly
two fragments. The problem is that the (skb_unprocessed >= frag_cap)
condition is always false on the second fragment after sending the first
fragment. A fragmentation with only one fragment doesn't make any sense.
The solution is that we use a do while loop here, that ensures we sending
always a minimum of two fragments if we need a fragmentation.

This issue was introduced by commit d4b2816d67
("6lowpan: fix fragmentation").

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-06-02 10:39:42 -07:00
..
6lowpan_iphc.c 6lowpan: move 6lowpan header to include/net 2014-03-06 17:21:38 -05:00
6lowpan_rtnl.c 6lowpan_rtnl: fix fragmentation with two fragments 2014-06-02 10:39:42 -07:00
af802154.h mac802154: use header operations to create/parse headers 2014-03-14 22:15:26 -04:00
af_ieee802154.c af_ieee802154: fix check on broadcast address 2014-03-20 17:19:45 -04:00
dgram.c ieee802154: add dgram sockopts for security control 2014-05-16 17:23:41 -04:00
header_ops.c ieee802154: add definitions for link-layer security and header functions 2014-05-15 15:51:42 -04:00
ieee802154.h ieee802154: add netlink interfaces for llsec 2014-05-16 17:23:41 -04:00
Kconfig ieee802154: fix whitespace issues in Kconfig 2014-03-04 20:12:44 -05:00
Makefile ieee802154: add header structs with endiannes and operations 2014-03-14 22:15:26 -04:00
netlink.c ieee802154: add netlink interfaces for llsec 2014-05-16 17:23:41 -04:00
nl-mac.c ieee802154: missing put_dev() on error 2014-05-22 15:54:45 -04:00
nl-phy.c mac802154: make csma/cca parameters per-wpan 2014-04-01 16:25:51 -04:00
nl_policy.c ieee802154: add netlink interfaces for llsec 2014-05-16 17:23:41 -04:00
raw.c ieee802154: properly unshare skbs in ieee802154 *_rcv functions 2014-03-18 15:59:25 -04:00
reassembly.c 6lowpan: make lowpan_cb static 2014-04-20 18:18:55 -04:00
reassembly.h ieee802154: use ieee802154_addr instead of *_sa variants 2014-03-14 22:15:26 -04:00
wpan-class.c mac802154: make csma/cca parameters per-wpan 2014-04-01 16:25:51 -04:00