Re: [Openswan dev] ip xfrm bug
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-12-16 07:43:59
On Fri, Dec 14, 2007 at 11:21:18AM -0800, Stephen Hemminger wrote:
I can see where to filter these, but I am ignorant of how to identify the socket policies. Are they just marked as sub-policies?
Jamal's going to hate me but setkey(8) already uses this so we're
stuck with it anyway.
The test is
up->index % 8 >= 3
This is true iff it's a socket policy.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt