Files
linux/net
Mark Tomlinson e66186ed3d gre6: Fix reception with IP6_TNL_F_RCV_DSCP_COPY
[ Upstream commit 272502fcb7 ]

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: 308edfdf15 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 08:56:32 +09:00
..
2023-05-16 08:45:10 +09:00
2015-03-02 16:43:41 -05:00
2023-05-15 12:38:05 +09:00
2023-05-15 16:07:59 +09:00
2023-05-15 14:29:05 +09:00
2023-05-15 13:49:35 +09:00
2016-10-20 11:23:08 -04:00
2023-05-16 08:54:26 +09:00
2023-05-15 17:27:56 +09:00
2023-05-16 08:30:10 +09:00
2023-05-15 12:05:35 +09:00
2023-05-15 15:17:38 +09:00
2023-05-16 08:31:15 +09:00