xfrm: Check for the new replay implementation if an esn state is inserted
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 25 Apr 2011 19:41:21 +0000 (19:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2011 19:46:04 +0000 (12:46 -0700)
commit7833aa05b8db63484b43b4b4c389cd4533140afb
tree7540e5cef5c96e0a0bcef2baf5360511885ce3b2
parentc0a56e64aec331f33ead29ba493ee184d9bdc840
xfrm: Check for the new replay implementation if an esn state is inserted

IPsec extended sequence numbers can be used only with the new
anti-replay window implementation. So check if the new implementation
is used if an esn state is inserted and return an error if it is not.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c