xfrm: Add user interface for esn and big anti-replay windows
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 8 Mar 2011 00:10:27 +0000 (00:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2011 03:22:31 +0000 (20:22 -0700)
commitd8647b79c3b7e223ac051439d165bc8e7bbb832f
treec3d0e377c77f4c0c138c339c3ac0c66dbb1d232b
parent2cd084678fc1eb75aec4f7ae3d339d232c00ec61
xfrm: Add user interface for esn and big anti-replay windows

This patch adds a netlink based user interface to configure
esn and big anti-replay windows. The new netlink attribute
XFRMA_REPLAY_ESN_VAL is used to configure the new implementation.
If the XFRM_STATE_ESN flag is set, we use esn and support for big
anti-replay windows for the configured state. If this flag is not
set we use the new implementation with 32 bit sequence numbers.
A big anti-replay window can be configured in this case anyway.

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_state.c
net/xfrm/xfrm_user.c