diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2011-03-28 19:48:09 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-28 23:34:53 -0700 |
commit | 02aadf72fe2c83f145e3437734e66be53abae481 (patch) | |
tree | 889b435105ed020eb4b821b2ffcd2fa878dfd84f /net | |
parent | e2b19125e94124daaeda1ddcf9b85b04575ad86f (diff) | |
download | linux-3.10-02aadf72fe2c83f145e3437734e66be53abae481.tar.gz linux-3.10-02aadf72fe2c83f145e3437734e66be53abae481.tar.bz2 linux-3.10-02aadf72fe2c83f145e3437734e66be53abae481.zip |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/xfrm/xfrm_user.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index ccc4c0c8ef0..3d15d3e1b2c 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -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; |