ip6_tunnel: disable dst caching if tunnel is dual-stack
commitb9f16497eec26d8009791493e6f2dda03348819d
authorEli Cooper <elicooper@gmx.com>
Mon, 25 Dec 2017 02:43:49 +0000 (25 10:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jan 2018 08:35:29 +0000 (17 09:35 +0100)
tree6e32bafc9d5ef90771575ac116d87ee7ebdb35d2
parent0e1cadec4187426e9e1f46936865d2fb2da9860c
ip6_tunnel: disable dst caching if tunnel is dual-stack

[ Upstream commit 23263ec86a5f44312d2899323872468752324107 ]

When an ip6_tunnel is in mode 'any', where the transport layer
protocol can be either 4 or 41, dst_cache must be disabled.

This is because xfrm policies might apply to only one of the two
protocols. Caching dst would cause xfrm policies for one protocol
incorrectly used for the other.

Signed-off-by: Eli Cooper <elicooper@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_tunnel.c