]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_tunnel: disable dst caching if tunnel is dual-stack
authorEli Cooper <elicooper@gmx.com>
Mon, 25 Dec 2017 02:43:49 +0000 (10:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 17:31:12 +0000 (12:31 -0500)
commitf74d2c10d0df4a081b435c0a5ab9fcc1b55a425a
tree894af6206bab14c8f17c0f99ace4031954c3b807
parentb8fce370ac390bf7b3d3530603bb8db06f8ad779
ip6_tunnel: disable dst caching if tunnel is dual-stack

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>
net/ipv6/ip6_tunnel.c