Files
linux/net/ipv4
Edward Hyunkoo Jee cecc562266 inet: frags: fix defragmented packet's IP header for af_packet
[ Upstream commit 0848f6428b ]

When ip_frag_queue() computes positions, it assumes that the passed
sk_buff does not contain L2 headers.

However, when PACKET_FANOUT_FLAG_DEFRAG is used, IP reassembly
functions can be called on outgoing packets that contain L2 headers.

Also, IPv4 checksum is not corrected after reassembly.

Fixes: 7736d33f42 ("packet: Add pre-defragmentation support for ipv4 fanouts.")
Signed-off-by: Edward Hyunkoo Jee <edjee@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Cc: Jerry Chu <hkchu@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-01 12:07:37 +02:00
..
2013-02-15 15:10:37 -05:00
2013-06-25 16:07:44 -07:00
2014-08-14 09:24:15 +08:00
2013-03-17 14:35:13 -04:00
2014-08-14 09:24:15 +08:00
2014-08-14 09:24:15 +08:00
2014-08-14 09:24:15 +08:00
2013-03-26 12:27:19 -04:00
2013-03-26 12:27:18 -04:00
2014-08-14 09:24:15 +08:00
2015-06-22 16:55:51 -07:00
2012-01-20 14:17:26 -05:00
2012-05-17 14:59:59 -04:00
2011-03-31 11:26:23 -03:00
2013-03-21 11:47:50 -04:00
2013-03-21 11:47:50 -04:00
2011-03-31 11:26:23 -03:00
2012-03-11 23:42:51 -07:00
2012-04-15 12:37:19 -04:00
2015-06-22 16:55:51 -07:00