diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2018-12-08 20:41:04 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-12-08 21:50:14 +0100 |
commit | f939598b7a7ce2079722295603e2dcee93ad310d (patch) | |
tree | 4d11e9cd05ef089769d125e247fbb1dc91b63784 /package/network | |
parent | ed000fcaf2cfa22bb558ed11c8a15d239240020b (diff) | |
download | upstream-f939598b7a7ce2079722295603e2dcee93ad310d.tar.gz upstream-f939598b7a7ce2079722295603e2dcee93ad310d.tar.bz2 upstream-f939598b7a7ce2079722295603e2dcee93ad310d.zip |
iptables: fix ebtables vlan compile issue (FS#1990)
Backport an upstream patch which fixes an userspace/kernel headers
collison
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/utils/iptables/Makefile | 2 | ||||
-rw-r--r-- | package/network/utils/iptables/patches/003-ebtables-vlan-fix_userspace_kernel_headers_collision.patch | 41 |
2 files changed, 42 insertions, 1 deletions
diff --git a/package/network/utils/iptables/Makefile b/package/network/utils/iptables/Makefile index 54fffc9d1e..6c42774ef4 100644 --- a/package/network/utils/iptables/Makefile +++ b/package/network/utils/iptables/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=iptables PKG_VERSION:=1.8.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://git.netfilter.org/iptables diff --git a/package/network/utils/iptables/patches/003-ebtables-vlan-fix_userspace_kernel_headers_collision.patch b/package/network/utils/iptables/patches/003-ebtables-vlan-fix_userspace_kernel_headers_collision.patch new file mode 100644 index 0000000000..53e1113003 --- /dev/null +++ b/package/network/utils/iptables/patches/003-ebtables-vlan-fix_userspace_kernel_headers_collision.patch @@ -0,0 +1,41 @@ +From 51d374ba41ae4f1bb851228c06b030b83dd2092f Mon Sep 17 00:00:00 2001 +From: Baruch Siach <baruch@tkos.co.il> +Date: Tue, 13 Nov 2018 19:22:08 +0200 +Subject: ebtables: vlan: fix userspace/kernel headers collision +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Build with musl libc fails because of conflicting struct ethhdr +definitions: + +In file included from .../sysroot/usr/include/net/ethernet.h:10:0, + from ../iptables/nft-bridge.h:8, + from libebt_vlan.c:18: +.../sysroot/usr/include/netinet/if_ether.h:107:8: error: redefinition of ‘struct ethhdr’ + struct ethhdr { + ^~~~~~ +In file included from libebt_vlan.c:16:0: +.../sysroot/usr/include/linux/if_ether.h:160:8: note: originally defined here + struct ethhdr { + ^~~~~~ + +Include the userspace header first for the definition suppression logic +to do the right thing. + +Signed-off-by: Baruch Siach <baruch@tkos.co.il> +Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> +--- + extensions/libebt_vlan.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/extensions/libebt_vlan.c ++++ b/extensions/libebt_vlan.c +@@ -12,6 +12,7 @@ + #include <getopt.h> + #include <ctype.h> + #include <xtables.h> ++#include <netinet/if_ether.h> + #include <linux/netfilter_bridge/ebt_vlan.h> + #include <linux/if_ether.h> + #include "iptables/nft.h" |