aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2013-06-26 17:40:33 +0200
committerDavid S. Miller <davem@davemloft.net>2013-06-26 13:42:03 -0700
commit963b89e80d9fb7f22fc2688428e121b410b76504 (patch)
tree9fe525d450947b1d943a493326612f8f27ad3dbc
parenta77471ff7069eac4f9b408509dc4c6cb61461a56 (diff)
downloadkernel_goldelico_gta04-963b89e80d9fb7f22fc2688428e121b410b76504.zip
kernel_goldelico_gta04-963b89e80d9fb7f22fc2688428e121b410b76504.tar.gz
kernel_goldelico_gta04-963b89e80d9fb7f22fc2688428e121b410b76504.tar.bz2
sit: fix 4in4 + IPsec scenario
Since commit 32b8a8e59c9c "sit: add IPv4 over IPv4 support", tunnel->parms.iph.protocol is 0 when both 4in4 and 6in4 are setup, but xfrm_lookup() is called only when proto is != 0, thus we need to pass the real value. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv4/ip_tunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c
index bd227e5..3b00d81 100644
--- a/net/ipv4/ip_tunnel.c
+++ b/net/ipv4/ip_tunnel.c
@@ -542,7 +542,7 @@ void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev,
}
rt = ip_route_output_tunnel(dev_net(dev), &fl4,
- tunnel->parms.iph.protocol,
+ protocol,
dst, tnl_params->saddr,
tunnel->parms.o_key,
RT_TOS(tos),