mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
xfrm: Restrict extended sequence numbers to esp
The IPsec extended sequence numbers are fully implemented just for esp. So restrict the usage to esp until other protocols have support too. 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
e2b19125e9
commit
02aadf72fe
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ static inline int verify_replay(struct xfrm_usersa_info *p,
|
|||
if (!rt)
|
||||
return 0;
|
||||
|
||||
if (p->id.proto != IPPROTO_ESP)
|
||||
return -EINVAL;
|
||||
|
||||
if (p->replay_window != 0)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue