esp6: Fix integrity verification when ESN are used
authorTobias Brunner <tobias@strongswan.org>
Tue, 29 Nov 2016 16:05:25 +0000 (17:05 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 30 Nov 2016 10:10:16 +0000 (11:10 +0100)
commita55e23864d381c5a4ef110df94b00b2fe121a70d
treeb763e978a7d10a968c2754543ad23215d9d855fc
parent7c7fedd51c02f4418e8b2eed64bdab601f882aa4
esp6: Fix integrity verification when ESN are used

When handling inbound packets, the two halves of the sequence number
stored on the skb are already in network order.

Fixes: 000ae7b2690e ("esp6: Switch to new AEAD interface")
Signed-off-by: Tobias Brunner <tobias@strongswan.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/esp6.c