]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcfa9a1c051790bf2094f214d3090191ec7afbf1e
tree012d164d745342f453d5fed4619884839f51fbc0
parenteaaa2bff41f35089adf79295e2903f7b58d95a97
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