mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
d212a4c290
commit
9fdc4883d9
7 changed files with 174 additions and 128 deletions
|
@ -475,8 +475,10 @@ static struct xfrm_state *xfrm_state_construct(struct net *net,
|
|||
x->preplay.seq = x->replay.seq+x->replay_maxdiff;
|
||||
x->preplay.oseq = x->replay.oseq +x->replay_maxdiff;
|
||||
|
||||
/* override default values from above */
|
||||
if ((err = xfrm_init_replay(x)))
|
||||
goto error;
|
||||
|
||||
/* override default values from above */
|
||||
xfrm_update_ae_params(x, attrs);
|
||||
|
||||
return x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue