Thread (7 messages) flat view 7 messages, 3 authors, 2008-02-13

Re: xfrm_input() and ->seq oddities

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2008-02-03 03:05:22

On Sun, Feb 03, 2008 at 12:37:19AM +0000, Al Viro wrote:
This is still very odd...  Where do you initialize ->seq.input?  What
In xfrm_input.
guarantees that async call of xfrm_input() will be always preceded by
at least one non-async one?
OK I admit it isn't pretty.  But the encap_type argument is reused to
indicate async resumption.  That is, if we enter with encap_type < 0,
it means that we're resuming a previous operation and seq.input has
therefore been set by the previous xfrm_input call.

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help