[PATCH] include: extend the headers conflict workaround to in6.h

2018-11-24 Thread Baruch Siach
he version that introduced explicit IP headers synchronization. Cc: Florian Westphal Signed-off-by: Baruch Siach --- include/linux/netfilter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index bacf8cd92116..042d8b1478e0 100644 ---

Re: [PATCH iptables] include: fix build with kernel headers before 4.2

2018-11-20 Thread Baruch Siach
Hi Pablo, Pablo Neira Ayuso writes: > On Sat, Nov 17, 2018 at 10:28:56PM +0200, Baruch Siach wrote: >> Pablo Neira Ayuso writes: >> > On Fri, Nov 16, 2018 at 09:30:33AM +0200, Baruch Siach wrote: >> >> Commit 672accf1530 (include: update kernel netfilter hea

Re: [PATCH iptables] include: fix build with kernel headers before 4.2

2018-11-17 Thread Baruch Siach
Hi Pablo, Pablo Neira Ayuso writes: > On Fri, Nov 16, 2018 at 09:30:33AM +0200, Baruch Siach wrote: >> Commit 672accf1530 (include: update kernel netfilter header files) >> updated linux/netfilter.h and brought with it the update from kernel >> commit a263653ed798 (netfilte

[PATCH iptables] xtables-monitor: fix build with musl libc

2018-11-17 Thread Baruch Siach
dest’ printf("SPORT=%d DPORT=%d ", ntohs(tcph->source), ntohs(tcph->dest)); ^~ ... Cc: Florian Westphal Signed-off-by: Baruch Siach --- iptables/xtables-monitor.c | 1 + 1 file changed, 1 insertion(+) diff --g

[PATCH iptables] include: fix build with kernel headers before 4.2

2018-11-15 Thread Baruch Siach
/include/netinet/in.h:33:5: note: previous definition of ‘IPPROTO_IP’ was here IPPROTO_IP = 0,/* Dummy protocol for TCP. */ ^~ Cc: Florian Westphal Signed-off-by: Baruch Siach --- include/linux/netfilter.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux

Re: [PATCH xtables] xtables-monitor: fix build with older glibc

2018-11-15 Thread Baruch Siach
Hi Florian, Florian Westphal writes: > Baruch Siach wrote: >> glibc older than 2.19 require _BSD_SOURCE to expose BSD style fields of >> struct tcphdr. Fix the following build failure: >> >> xtables-monitor.c: In function 'trace_print_packet': >> xtables-monit

[PATCH xtables] xtables-monitor: fix build with older glibc

2018-11-14 Thread Baruch Siach
_sport), ntohs(tcph->th_dport)); ^ ... Cc: Florian Westphal Signed-off-by: Baruch Siach --- iptables/xtables-monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/iptables/xtables-monitor.c b/iptables/xtables-monitor.c index 3b1ca777a28a..f664dc541ab3 100644 --- a/

[PATCH xtables] ebtables: vlan: fix userspace/kernel headers collision

2018-11-13 Thread Baruch Siach
thing. Signed-off-by: Baruch Siach --- extensions/libebt_vlan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/libebt_vlan.c b/extensions/libebt_vlan.c index 4a2eb7126895..be269c6cdb4c 100644 --- a/extensions/libebt_vlan.c +++ b/extensions/libebt_vlan.c @@ -12,6 +12,7 @@ #include

[PATCH ebtables] Fix musl libc compatibility

2018-05-04 Thread Baruch Siach
: originally defined here struct ethhdr { ^~ Recent enough versions kernel headers allow the libc to suppress conflicting kernel definitions. Include the libc proivded netinet/ether.h before kernel headers to suppress the conflicting definition of struct ethhdr. Signed-off-by: Baruch Siach

[PATCH] src: fix build with older glibc

2018-02-09 Thread Baruch Siach
of IPPROTO_MH in headers.h use that to fix the build. Signed-off-by: Baruch Siach <bar...@tkos.co.il> --- src/parser_bison.y | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser_bison.y b/src/parser_bison.y index 2e79109f4da3..578bfdc10429 100644 --- a/src/parser_bison.y +++

[PATCH iptables] utils: nfsynproxy: fix build with musl libc

2017-03-01 Thread Baruch Siach
’ length = th->doff * 4 - sizeof(*th); ^ Signed-off-by: Baruch Siach <bar...@tkos.co.il> --- 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/ut