[Openswan dev] ip xfrm bug

Herbert Xu herbert at gondor.apana.org.au
Sun Dec 16 02:43:59 EST 2007

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.

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

More information about the Dev mailing list