summaryrefslogtreecommitdiff
path: root/net/ipv6/icmp.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2009-01-27 22:30:19 -0800
committerDavid S. Miller <davem@davemloft.net>2009-01-27 22:30:19 -0800
commit6c06a478c9e59d1584a5dc1b2b3519bae5d6546a (patch)
tree130d7b956340a81fd27e7724c73178d3e3f49a61 /net/ipv6/icmp.c
parent94cd3e6cbebf85903b4d53ed2147bdb4c6e08625 (diff)
downloadlinux-3.10-6c06a478c9e59d1584a5dc1b2b3519bae5d6546a.tar.gz
linux-3.10-6c06a478c9e59d1584a5dc1b2b3519bae5d6546a.tar.bz2
linux-3.10-6c06a478c9e59d1584a5dc1b2b3519bae5d6546a.zip
net: fix xfrm reverse flow lookup for icmp6
This patch fixes the xfrm reverse flow lookup for icmp6 so that icmp6 packets don't get lost over ipsec tunnels. Similar patch is in RHEL5 kernel for a quite long time and I do not see why it isn't in mainline. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r--net/ipv6/icmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
index 4f433847d95..36dff880718 100644
--- a/net/ipv6/icmp.c
+++ b/net/ipv6/icmp.c
@@ -443,10 +443,10 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, __u32 info,
if (xfrm_decode_session_reverse(skb, &fl2, AF_INET6))
goto relookup_failed;
- if (ip6_dst_lookup(sk, &dst2, &fl))
+ if (ip6_dst_lookup(sk, &dst2, &fl2))
goto relookup_failed;
- err = xfrm_lookup(net, &dst2, &fl, sk, XFRM_LOOKUP_ICMP);
+ err = xfrm_lookup(net, &dst2, &fl2, sk, XFRM_LOOKUP_ICMP);
switch (err) {
case 0:
dst_release(dst);