summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-3.10
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/patches-3.10')
-rw-r--r--target/linux/generic/patches-3.10/614-netfilter_arpt_arp_padding_fix.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.10/614-netfilter_arpt_arp_padding_fix.patch b/target/linux/generic/patches-3.10/614-netfilter_arpt_arp_padding_fix.patch
new file mode 100644
index 0000000..70a8d04
--- /dev/null
+++ b/target/linux/generic/patches-3.10/614-netfilter_arpt_arp_padding_fix.patch
@@ -0,0 +1,16 @@
+--- a/include/uapi/linux/netfilter_arp/arp_tables.h
++++ b/include/uapi/linux/netfilter_arp/arp_tables.h
+@@ -68,6 +68,13 @@ struct arpt_arp {
+ __u8 flags;
+ /* Inverse flags */
+ __u16 invflags;
++
++ /* For some reason Linaro GCC 4.6-2013.05 omits the two
++ * byte padding here when building for MIPS 34kc, leading to
++ * userspace abi mismatches.
++ * Add a dummy field to align this struct to 4 bytes
++ */
++ __u16 padding;
+ };
+
+ /* Values for "flag" field in struct arpt_ip (general arp structure).