diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2011-03-07 19:08:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-13 23:22:30 -0400 |
commit | 9fdc4883d92d20842c5acea77a4a21bb1574b495 (patch) | |
tree | 87019e64093d90a4f2b42149231d0ad3a864c5f9 /net/xfrm/xfrm_user.c | |
parent | d212a4c29096484e5e83b5006e695add126260af (diff) |
xfrm: Move IPsec replay detection functions to a separate file
To support multiple versions of replay detection, we move the replay
detection functions to a separate file and make them accessible
via function pointers contained in the struct xfrm_replay.
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>
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r-- | net/xfrm/xfrm_user.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 468ab60d3dc0..f7b3c857c989 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -475,8 +475,10 @@ static struct xfrm_state *xfrm_state_construct(struct net *net, | |||
475 | x->preplay.seq = x->replay.seq+x->replay_maxdiff; | 475 | x->preplay.seq = x->replay.seq+x->replay_maxdiff; |
476 | x->preplay.oseq = x->replay.oseq +x->replay_maxdiff; | 476 | x->preplay.oseq = x->replay.oseq +x->replay_maxdiff; |
477 | 477 | ||
478 | /* override default values from above */ | 478 | if ((err = xfrm_init_replay(x))) |
479 | goto error; | ||
479 | 480 | ||
481 | /* override default values from above */ | ||
480 | xfrm_update_ae_params(x, attrs); | 482 | xfrm_update_ae_params(x, attrs); |
481 | 483 | ||
482 | return x; | 484 | return x; |