Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
From 06e0312d0bfd1f0b9e7c23ab654f18524d49e86b Mon Sep 17 00:00:00 2001
|
||||
From: Baruch Siach <baruch@tkos.co.il>
|
||||
Date: Thu, 2 Mar 2017 09:20:48 +0200
|
||||
Subject: [PATCH] utils: nfsynproxy: fix build with musl libc
|
||||
|
||||
The musl libc exposes some struct tcphdr field only when _GNU_SOURCE is
|
||||
defined. Fix the following build failure:
|
||||
|
||||
nfsynproxy.c: In function ‘parse_packet’:
|
||||
nfsynproxy.c:34:9: error: ‘const struct tcphdr’ has no member named ‘syn’
|
||||
if (!th->syn || !th->ack)
|
||||
^
|
||||
nfsynproxy.c:34:21: error: ‘const struct tcphdr’ has no member named ‘ack’
|
||||
if (!th->syn || !th->ack)
|
||||
^
|
||||
nfsynproxy.c:42:8: error: ‘const struct tcphdr’ has no member named ‘res2’
|
||||
if (th->res2 == 0x1)
|
||||
^
|
||||
nfsynproxy.c:45:13: error: ‘const struct tcphdr’ has no member named ‘doff’
|
||||
length = th->doff * 4 - sizeof(*th);
|
||||
^
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
Upstream status: pending (http://patchwork.ozlabs.org/patch/734503/)
|
||||
|
||||
utils/nfsynproxy.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/utils/nfsynproxy.c b/utils/nfsynproxy.c
|
||||
index baedc92c5d9f..bf5c416340f1 100644
|
||||
--- a/utils/nfsynproxy.c
|
||||
+++ b/utils/nfsynproxy.c
|
||||
@@ -6,6 +6,7 @@
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
+#define _GNU_SOURCE
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <unistd.h>
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -9,10 +9,6 @@ if BR2_PACKAGE_IPTABLES
|
||||
|
||||
config BR2_PACKAGE_IPTABLES_BPF_NFSYNPROXY
|
||||
bool "bpfc and nfsynproxy"
|
||||
# this dependency can be removed when using a musl version
|
||||
# containing this commit:
|
||||
# http://git.musl-libc.org/cgit/musl/commit/?id=53f41fb568ae43034c9876cc9bd3961fd6d13671
|
||||
depends on !BR2_TOOLCHAIN_USES_MUSL
|
||||
select BR2_PACKAGE_LIBPCAP
|
||||
help
|
||||
Build bpf compiler and nfsynproxy configuration tool.
|
||||
|
||||
@@ -10,7 +10,7 @@ IPTABLES_SITE = http://ftp.netfilter.org/pub/iptables
|
||||
IPTABLES_INSTALL_STAGING = YES
|
||||
IPTABLES_DEPENDENCIES = host-pkgconf \
|
||||
$(if $(BR2_PACKAGE_LIBNETFILTER_CONNTRACK),libnetfilter_conntrack)
|
||||
IPTABLES_LICENSE = GPLv2
|
||||
IPTABLES_LICENSE = GPL-2.0
|
||||
IPTABLES_LICENSE_FILES = COPYING
|
||||
# Building static causes ugly warnings on some plugins
|
||||
IPTABLES_CONF_OPTS = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr \
|
||||
|
||||
Reference in New Issue
Block a user