netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [IPv6][IPsec] fix oops with using IPsec
@ 2003-10-24 12:30 Kazunori Miyazawa
  2003-10-24 12:37 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Kazunori Miyazawa @ 2003-10-24 12:30 UTC (permalink / raw)
  To: davem, netdev; +Cc: usagi

Hello,

This patch fixes oops with using IPsec in IPv6. Original source removes
RTF_NDISC at copying dst. It makes the kernel use the wrong stackable
destination.

--- net/ipv6/xfrm6_policy.c.org	2003-10-24 21:17:26.000000000 +0900
+++ net/ipv6/xfrm6_policy.c	2003-10-24 21:17:41.000000000 +0900
@@ -169,7 +169,7 @@
 		dst_prev->output	= dst_prev->xfrm->type->output;
 		/* Sheit... I remember I did this right. Apparently,
 		 * it was magically lost, so this code needs audit */
-		x->u.rt6.rt6i_flags    = rt0->rt6i_flags&(RTCF_BROADCAST|RTCF_MULTICAST|RTCF_LOCAL);
+		x->u.rt6.rt6i_flags    = rt0->rt6i_flags&(RTCF_BROADCAST|RTCF_MULTICAST|RTCF_LOCAL|RTF_NDISC);
 		x->u.rt6.rt6i_metric   = rt0->rt6i_metric;
 		x->u.rt6.rt6i_node     = rt0->rt6i_node;
 		x->u.rt6.rt6i_gateway  = rt0->rt6i_gateway;

--Kazunori Miyazawa

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

* Re: [PATCH] [IPv6][IPsec] fix oops with using IPsec
  2003-10-24 12:30 [PATCH] [IPv6][IPsec] fix oops with using IPsec Kazunori Miyazawa
@ 2003-10-24 12:37 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-10-24 12:37 UTC (permalink / raw)
  To: Kazunori Miyazawa; +Cc: netdev, usagi

On Fri, 24 Oct 2003 21:30:58 +0900
Kazunori Miyazawa <kazunori@miyazawa.org> wrote:

> This patch fixes oops with using IPsec in IPv6. Original source removes
> RTF_NDISC at copying dst. It makes the kernel use the wrong stackable
> destination.

Patch applied, thank you very much.

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

end of thread, other threads:[~2003-10-24 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-24 12:30 [PATCH] [IPv6][IPsec] fix oops with using IPsec Kazunori Miyazawa
2003-10-24 12:37 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).