Hi Jamal: On Fri, Apr 07, 2006 at 09:15:41AM -0400, jamal wrote: > > Ok, I built on Herbert's suggestion and tried to be a little > clever/accurate. Instead of a flag i introduce a variable that stores > the jiffy point when the timer is killed. If we fall anywhere to the > right or at exact point of the next point expected timer when the first > packet arrives, then we do an immediate update of type > XFRM_REPLAY_TIMEOUT else we keep receiving packets and wait until the > right time.
This looks good except that I think the flag beats jiffies since the latter can wrap around. Of course on any sane setup the SA should've expired by then but it pays to be safe. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html