1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-18 21:48:23 +02:00

ar71xx: remove the xfrm.h chunk from the unaligned access hacks, it breaks ipsec

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36646
This commit is contained in:
Felix Fietkau 2013-05-17 07:31:00 +00:00
parent ab3982a841
commit 56478636aa

@ -915,17 +915,6 @@
#define IP_TOS 1
#define IP_TTL 2
--- a/include/uapi/linux/xfrm.h
+++ b/include/uapi/linux/xfrm.h
@@ -13,7 +13,7 @@
typedef union {
__be32 a4;
__be32 a6[4];
-} xfrm_address_t;
+} __attribute__((packed, aligned(2))) xfrm_address_t;
/* Ident of a specific xfrm_state. It is used on input to lookup
* the state by (spi,daddr,ah/esp) or to store information about
--- a/net/core/secure_seq.c
+++ b/net/core/secure_seq.c
@@ -43,10 +43,11 @@ __u32 secure_tcpv6_sequence_number(const