Mark Tomlinson
272502fcb7
gre6: Fix reception with IP6_TNL_F_RCV_DSCP_COPY
...
When receiving an IPv4 packet inside an IPv6 GRE packet, and the
IP6_TNL_F_RCV_DSCP_COPY flag is set on the tunnel, the IPv4 header would
get corrupted. This is due to the common ip6_tnl_rcv() function assuming
that the inner header is always IPv6. This patch checks the tunnel
protocol for IPv4 inner packets, but still defaults to IPv6.
Fixes: 308edfdf1563 ("gre6: Cleanup GREv6 receive path, call common GRE functions")
Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-08-20 16:28:04 -07:00
..
2020-06-20 21:33:57 -07:00
2020-08-05 20:13:21 -07:00
2020-04-28 12:50:37 -07:00
2020-08-18 15:58:53 -07:00
2019-04-27 17:07:21 -04:00
2020-07-19 18:16:40 -07:00
2020-04-28 11:28:36 +02:00
2020-07-30 16:30:55 -07:00
2020-05-12 18:12:40 -07:00
2020-07-24 17:12:41 -07:00
2020-06-20 21:33:57 -07:00
2020-07-28 07:57:23 +02:00
2019-07-27 14:23:48 -07:00
2019-05-30 11:26:32 -07:00
2020-07-13 17:20:39 -07:00
2019-10-04 11:10:56 -07:00
2020-07-28 17:42:31 -07:00
2020-06-20 21:33:57 -07:00
2020-07-11 00:46:00 -07:00
2019-12-24 22:28:54 -08:00
2020-07-17 20:18:17 -07:00
2018-10-24 14:18:16 -07:00
2020-06-23 15:11:19 -07:00
2020-08-05 20:13:21 -07:00
2020-07-13 17:32:17 -07:00
2020-06-19 13:41:59 -07:00
2020-03-30 13:45:04 -07:00
2020-06-23 20:10:15 -07:00
2019-05-30 11:26:32 -07:00
2020-07-13 17:20:39 -07:00
2020-08-20 16:28:04 -07:00
2020-06-01 14:57:14 -07:00
2020-07-30 14:39:31 -07:00
2020-07-24 15:41:54 -07:00
2020-07-09 12:55:37 +02:00
2020-08-02 01:02:12 -07:00
2020-07-06 13:23:03 -07:00
2020-03-29 22:30:57 -07:00
2019-06-05 17:37:07 +02:00
2020-06-15 13:29:39 -07:00
2019-06-06 08:34:50 +02:00
2020-05-01 17:02:27 -07:00
2020-08-13 04:16:15 +02:00
2019-05-21 10:50:45 +02:00
2020-07-03 14:36:04 -07:00
2019-06-07 11:00:14 -07:00
2019-05-30 11:26:32 -07:00
2020-07-24 15:41:54 -07:00
2019-08-08 15:55:10 -07:00
2020-08-03 18:27:40 -07:00
2020-06-23 20:27:09 -07:00
2020-04-18 15:04:27 -07:00
2020-05-08 15:32:17 +10:00
2020-08-03 17:57:40 -07:00
2020-06-04 15:39:32 -07:00
2020-06-04 15:39:32 -07:00
2020-06-30 12:29:39 -07:00
2020-07-31 16:55:32 -07:00
2020-04-27 02:07:40 -04:00
2020-07-24 15:41:54 -07:00
2019-05-30 11:26:32 -07:00
2020-07-09 12:52:37 +02:00
2020-07-24 15:41:54 -07:00
2020-01-27 11:00:21 +01:00
2020-07-31 02:00:48 +02:00
2020-07-19 18:16:41 -07:00
2020-05-06 09:40:08 +02:00
2020-05-06 09:40:08 +02:00
2019-12-24 22:28:54 -08:00
2020-04-28 11:28:36 +02:00
2020-05-06 09:40:08 +02:00
2020-02-27 10:17:41 +01:00