mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
[IPSEC]: Fix bogus usage of u64 on input sequence number
Al Viro spotted a bogus use of u64 on the input sequence number which is big-endian. This patch fixes it by giving the input sequence number its own member in the xfrm_skb_cb structure. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
45b5035482
commit
b318e0e4ef
7 changed files with 15 additions and 10 deletions
|
|
@ -508,7 +508,10 @@ struct xfrm_skb_cb {
|
|||
} header;
|
||||
|
||||
/* Sequence number for replay protection. */
|
||||
u64 seq;
|
||||
union {
|
||||
u64 output;
|
||||
__be32 input;
|
||||
} seq;
|
||||
};
|
||||
|
||||
#define XFRM_SKB_CB(__skb) ((struct xfrm_skb_cb *)&((__skb)->cb[0]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue