mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] net: fix xfrm reverse flow lookup for icmp6
@ 2009-01-26 16:29 Jiri Pirko
  2009-01-28  3:48 ` Herbert Xu
  0 siblings, 1 reply; 3+ messages in thread
From: Jiri Pirko @ 2009-01-26 16:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: davem, herbert, nhorman

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.

Please correct me if I'm missing something.

Jirka


Signed-off-by: Jiri Pirko <jpirko@redhat.com>
---
 net/ipv6/icmp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
index 4f43384..36dff88 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);
-- 
1.6.0.6



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: fix xfrm reverse flow lookup for icmp6
  2009-01-26 16:29 [PATCH] net: fix xfrm reverse flow lookup for icmp6 Jiri Pirko
@ 2009-01-28  3:48 ` Herbert Xu
  2009-01-28  6:30   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Herbert Xu @ 2009-01-28  3:48 UTC (permalink / raw)
  To: Jiri Pirko; +Cc: linux-kernel, davem, nhorman

On Mon, Jan 26, 2009 at 05:29:54PM +0100, Jiri Pirko wrote:
> 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.
> 
> Please correct me if I'm missing something.
> 
> Jirka
> 
> 
> Signed-off-by: Jiri Pirko <jpirko@redhat.com>

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>

Indeed, I have no idea how this one slipped through the cracks.
Thanks for picking up on it!

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: fix xfrm reverse flow lookup for icmp6
  2009-01-28  3:48 ` Herbert Xu
@ 2009-01-28  6:30   ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2009-01-28  6:30 UTC (permalink / raw)
  To: herbert; +Cc: jpirko, linux-kernel, nhorman

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Wed, 28 Jan 2009 14:48:16 +1100

> On Mon, Jan 26, 2009 at 05:29:54PM +0100, Jiri Pirko wrote:
> > 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.
> > 
> > Please correct me if I'm missing something.
> > 
> > Jirka
> > 
> > 
> > Signed-off-by: Jiri Pirko <jpirko@redhat.com>
> 
> Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
> 
> Indeed, I have no idea how this one slipped through the cracks.
> Thanks for picking up on it!

Yep, thanks for sure.

Applied, thanks again.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-28  6:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-26 16:29 [PATCH] net: fix xfrm reverse flow lookup for icmp6 Jiri Pirko
2009-01-28  3:48 ` Herbert Xu
2009-01-28  6:30   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®