]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix IPSEC replay window handling
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 10 Apr 2007 20:37:24 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Apr 2007 20:47:05 +0000 (13:47 -0700)
commitc823d26e9a668566fa92f7486b2380191497ba7a
treea7030731b7b05a9cefb046b9b88cbee77d1bcc4d
parent12da1b6a092a13c2cf4903fd0d39c139d511ef96
Fix IPSEC replay window handling

[IPSEC]: Reject packets within replay window but outside the bit mask

Up until this point we've accepted replay window settings greater than
32 but our bit mask can only accomodate 32 packets.  Thus any packet
with a sequence number within the window but outside the bit mask would
be accepted.

This patch causes those packets to be rejected instead.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/xfrm/xfrm_state.c