Re: IPSec: Policy dst bundles exhausting storage

2 messages, 2 authors, 2003-06-17 · open the first message on its own page

Re: IPSec: Policy dst bundles exhausting storage

From: Tom Lendacky <hidden>
Date: 2003-06-17 18:38:15

   Well, of course.  There is nothing initializing this.

   You have to replace the x->u.rt.fl = *fl line with
   assignments further down to rt6i_src and friends.
   Something like:

             x->u.rt6.rt6i_src = rt0->rt6i_src;

   etc. etc.

   I don't understand where you expected these assignments
   to be made.  This is where the objects get constructed, so
   if it isn't being set here, it is being set nowhere :-)

Ok, my explanation could have been better.  In __xfrm6_bundle_create,
rt0->rt6i_src address and prefix length are zero (as well as rt->rt6i_src)
and so in __xfrm6_find_bundle the values in the xfrm_dst structure were
then zero.

So doing a tunnel mode ping from fec0::1 to fec0:0:0:2::11 in my
configuration, the following values exist in __xfrm6_bundle_create:

  rt0->rt6i_src.addr = 0000:0000:0000:0000:0000:0000:0000:0000
  rt0->rt6i_src.plen = 0
  rt0->rt6i_dst.addr = fec0:0000:0000:0002:0000:0000:0000:0000
  rt0->rt6i_dst.plen = 64

  rt->rt6i_src.addr  = 0000:0000:0000:0000:0000:0000:0000:0000
  rt->rt6i_src.plen  = 0
  rt->rt6i_dst.addr  = fec0:0000:0000:0000:0000:0000:0000:0002
  rt->rt6i_dst.plen  = 128

Sorry for the confusion.

Thanks,
Tom

Re: IPSec: Policy dst bundles exhausting storage

From: David S. Miller <hidden>
Date: 2003-06-17 18:43:46

   From: "Tom Lendacky" [off-list ref]
   Date: Tue, 17 Jun 2003 13:38:15 -0500

   In __xfrm6_bundle_create, rt0->rt6i_src address and prefix length
   are zero (as well as rt->rt6i_src)

That's perfectly fine, a 0-length prefix will cause a matche
on all addresses.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help