diff options
| author | Steffen Klassert <steffen.klassert@secunet.com> | 2011-03-07 19:06:31 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-03-13 23:22:28 -0400 |
| commit | 1ce3644ade9c865c755bf0f6a4e109b7bb6eb60f (patch) | |
| tree | 14ce0727337a43d1fa28432d01189d1a5f4269c7 /include/net | |
| parent | 9736acf395d3608583a7be70f62800b494fa103c (diff) | |
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')
| -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 7640822bc515..cb6d9b3fc55e 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
| @@ -582,8 +582,14 @@ struct xfrm_skb_cb { | |||
| 582 | 582 | ||
| 583 | /* Sequence number for replay protection. */ | 583 | /* Sequence number for replay protection. */ |
| 584 | union { | 584 | union { |
| 585 | u64 output; | 585 | struct { |
| 586 | __be32 input; | 586 | __u32 low; |
| 587 | __u32 hi; | ||
| 588 | } output; | ||
| 589 | struct { | ||
| 590 | __be32 low; | ||
| 591 | __be32 hi; | ||
| 592 | } input; | ||
| 587 | } seq; | 593 | } seq; |
| 588 | }; | 594 | }; |
| 589 | 595 | ||
