ipv6: Allow sending packets through tunnels with wildcard endpoints
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 5 Nov 2014 07:02:48 +0000 (08:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Nov 2014 19:19:19 +0000 (14:19 -0500)
commitd50051407f136028108cfda068d55ef053a54fe1
tree012d164d745342f453d5fed4619884839f51fbc0
parente1b2cb655060e081e73b384b1fc8b2e978f73467
ipv6: Allow sending packets through tunnels with wildcard endpoints

Currently we need the IP6_TNL_F_CAP_XMIT capabiltiy to transmit
packets through an ipv6 tunnel. This capability is set when the
tunnel gets configured, based on the tunnel endpoint addresses.

On tunnels with wildcard tunnel endpoints, we need to do the
capabiltiy checking on a per packet basis like it is done in
the receive path.

This patch extends ip6_tnl_xmit_ctl() to take local and remote
addresses as parameters to allow for per packet capabiltiy
checking.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_tunnel.h
net/ipv6/ip6_gre.c
net/ipv6/ip6_tunnel.c
net/ipv6/ip6_vti.c