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-14 01:57:21 +09:00
2020-08-15 08:34:36 -07:00
2020-02-24 13:02:53 -08:00
2020-06-28 21:37:23 -07:00
2020-08-03 15:48:32 -07:00
2020-08-07 11:33:22 -07:00
2020-07-25 17:49:04 -07:00
2020-06-26 10:37:11 +02:00
2020-08-07 11:33:22 -07:00
2020-08-03 23:32:23 +02:00
2020-08-04 14:27:25 -07:00
2020-08-14 11:59:08 +02:00
2020-07-24 15:41:54 -07:00
2020-08-15 11:12:58 +02:00
2020-08-03 11:05:26 +02:00
2020-08-18 15:56:56 -07:00
2020-06-23 20:27:09 -07:00
2020-08-05 20:13:21 -07:00
2020-08-03 16:03:18 -07:00
2020-04-28 14:39:46 -07:00
2020-07-23 15:14:58 -07:00
2020-05-23 16:56:17 -07:00
2020-08-18 16:00:24 -07:00
2020-07-31 16:46:26 -07:00
2020-07-24 15:41:54 -07:00
2019-09-26 08:56:17 +02:00
2020-08-18 16:02:16 -07:00
2020-08-20 16:28:04 -07:00
2020-08-05 20:13:21 -07:00
2020-07-24 15:41:54 -07:00
2020-08-02 01:02:12 -07:00
2020-07-30 16:45:31 -07:00
2020-06-20 17:22:22 -07:00
2020-06-14 01:57:21 +09:00
2020-07-24 15:41:54 -07:00
2020-08-07 11:33:22 -07:00
2020-08-07 11:33:22 -07:00
2020-07-27 11:40:47 -07:00
2020-08-16 21:11:37 -07:00
2020-07-23 11:49:41 -07:00
2020-08-16 16:05:36 -07:00
2020-07-13 17:20:40 -07:00
2020-08-19 15:39:36 -07:00
2020-07-24 15:41:54 -07:00
2020-08-11 10:34:30 -07:00
2020-06-14 01:57:21 +09:00
2020-08-13 15:53:30 -07:00
2020-08-13 15:37:30 -07:00
2020-07-24 15:41:54 -07:00
2020-05-23 16:36:05 -07:00
2020-08-17 15:00:41 -07:00
2020-08-02 01:02:12 -07:00
2019-12-16 10:15:49 +01:00
2020-07-24 15:41:54 -07:00
2020-08-02 01:02:12 -07:00
2020-08-05 20:13:21 -07:00
2020-08-07 11:33:22 -07:00
2020-08-20 12:07:31 -07:00
2019-06-22 08:59:24 -04:00
2020-08-15 08:26:55 -07:00
2020-07-13 17:20:40 -07:00
2020-08-18 15:58:53 -07:00
2020-08-11 10:20:34 -07:00
2020-07-19 18:16:41 -07:00
2020-08-12 12:56:06 -07:00
2019-08-10 15:25:47 -07:00
2020-08-07 11:33:22 -07:00
2020-07-24 15:41:54 -07:00
2020-07-28 12:50:15 +02:00
2020-08-10 19:07:44 -07:00
2020-08-07 12:43:25 -07:00
2020-06-30 15:57:34 -07:00
2020-07-07 15:41:05 -07:00
2020-05-23 16:56:17 -07:00
2020-08-10 12:06:44 -07:00