diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2011-03-08 00:06:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-13 20:22:28 -0700 |
commit | 1ce3644ade9c865c755bf0f6a4e109b7bb6eb60f (patch) | |
tree | 14ce0727337a43d1fa28432d01189d1a5f4269c7 /include/net/xfrm.h | |
parent | 9736acf395d3608583a7be70f62800b494fa103c (diff) | |
download | op-kernel-dev-1ce3644ade9c865c755bf0f6a4e109b7bb6eb60f.zip op-kernel-dev-1ce3644ade9c865c755bf0f6a4e109b7bb6eb60f.tar.gz |
xfrm: Use separate low and high order bits of the sequence numbers in xfrm_skb_cb
To support IPsec extended sequence numbers, we split the
output sequence numbers of xfrm_skb_cb in low and high order 32 bits
and we add the high order 32 bits to the input sequence numbers.
All users are updated accordingly.
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 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 7640822..cb6d9b3 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -582,8 +582,14 @@ struct xfrm_skb_cb { /* Sequence number for replay protection. */ union { - u64 output; - __be32 input; + struct { + __u32 low; + __u32 hi; + } output; + struct { + __be32 low; + __be32 hi; + } input; } seq; }; |