[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1198415205.4423.86.camel@localhost>
Date: Sun, 23 Dec 2007 08:06:45 -0500
From: jamal <hadi@...erus.ca>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: Stephen Hemminger <shemminger@...ux-foundation.org>,
Paul Wouters <paul@...erance.com>, dev@...nswan.org,
netdev@...r.kernel.org
Subject: Re: ip xfrm bug
On Sun, 2007-16-12 at 15:43 +0800, Herbert Xu wrote:
> 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.
I would have loved it if user space had a say ;->
In the case of tc actions for example; the (table) index abides to the
following rules:
if user space specified one in rule insertion then {
if available, use the allowed entry {
} else if inuse {
if replace flag is set then {
replace
} else {
return error
}
} else {
grab the next available index
}
makes management from user space much simpler.
cheers,
jamal
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists