diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2011-03-08 01:06:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-14 04:22:28 +0100 |
commit | 1ce3644ade9c865c755bf0f6a4e109b7bb6eb60f (patch) | |
tree | 14ce0727337a43d1fa28432d01189d1a5f4269c7 /net/ipv6/ah6.c | |
parent | xfrm: Add basic infrastructure to support IPsec extended sequence numbers (diff) | |
download | linux-1ce3644ade9c865c755bf0f6a4e109b7bb6eb60f.tar.xz linux-1ce3644ade9c865c755bf0f6a4e109b7bb6eb60f.zip |
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 'net/ipv6/ah6.c')
-rw-r--r-- | net/ipv6/ah6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index 1aba54ae53c4..2195ae651923 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c @@ -409,7 +409,7 @@ static int ah6_output(struct xfrm_state *x, struct sk_buff *skb) ah->reserved = 0; ah->spi = x->id.spi; - ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output); + ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); sg_init_table(sg, nfrags); skb_to_sgvec(skb, sg, 0, skb->len); |