Re: [RFC PATCH]xfrm: fix perpetual bundles

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: jamal
Date: Thursday, February 25, 2010 - 6:19 am

Hi Steffen,

On Thu, 2010-02-25 at 11:40 +0100, Steffen Klassert wrote:


I tried with and without. If in xfrm_bundle_create()
after the call to xfrm_fill_dst() somewhere i "fixed" the
xdst->u.rt.fl.fl4_src, as in:
---
                err = xfrm_fill_dst(xdst, dev);
                if (err)
                        goto free_dst;
 

+               if (!xdst->u.rt.fl.fl4_src) {
+                       xdst->u.rt.fl.fl4_src = fl->fl4_src;
+		}
----

Then this worked as long as i turned off CONFIG_XFRM_SUB_POLICY.
If i use the simple patch i posted - it worked with or without
CONFIG_XFRM_SUB_POLICY turned on.


nod.


Precisely - i actually was failing at exactly the same spot with
CONFIG_XFRM_SUB_POLICY with the "fix" i described above. 
"Fixing it" at that path level you have below may have bigger effect - i
cant think of one right now; but that path is hit by all outgoing
packets...

Lets hear what other people have to say - but iam beginning to feel
probably the change i posted is not so unreasonable since 0.0.0.0
is INADDR_ANY.

cheers,
jamal

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH]xfrm: fix perpetual bundles, jamal, (Wed Feb 24, 6:19 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, Steffen Klassert, (Thu Feb 25, 3:40 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, jamal, (Thu Feb 25, 6:19 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, jamal, (Sun Feb 28, 7:07 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, Steffen Klassert, (Mon Mar 1, 8:33 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, Herbert Xu, (Tue Mar 2, 4:27 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, jamal, (Tue Mar 2, 5:11 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, Herbert Xu, (Tue Mar 2, 5:51 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, jamal, (Tue Mar 2, 6:10 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, Steffen Klassert, (Tue Mar 2, 6:46 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, jamal, (Tue Mar 2, 6:54 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, David Miller, (Tue Mar 2, 7:06 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, Steffen Klassert, (Tue Mar 2, 7:06 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, jamal, (Tue Mar 2, 7:16 am)
Re: [RFC PATCH]xfrm: fix perpetual bundles, jamal, (Tue Mar 2, 5:47 pm)
Re: [RFC PATCH]xfrm: fix perpetual bundles, David Miller, (Wed Mar 3, 2:07 am)