1 From 2f2fde48594ec34e93ab409cd83442efe58e10ad Mon Sep 17 00:00:00 2001
2 From: Brendan Heading <brendanheading@gmail.com>
3 Date: Mon, 31 Aug 2015 15:24:44 +0100
4 Subject: [PATCH 3/3] fix build with musl
6 Add needed headers they are just not needed for glibc6+ but also
8 Define additional TCOPTS if not there
10 u_initX types are in sys/types.h be explicit about it
12 Upstream-Status: Pending
14 bh: this is a copy of the patch at the link below, modified to remove
15 the changes to include/libiptc/ipt_kernel_headers.h as these are
16 already integrated in the upstream tree. See :
18 http://lists.openembedded.org/pipermail/openembedded-core/2015-April/103613.html
20 Signed-off-by: Khem Raj <raj.khem@gmail.com>
21 Signed-off-by: Brendan Heading <brendanheading@gmail.com>
23 extensions/libxt_TCPOPTSTRIP.c | 15 +++++++++++++++
24 include/linux/netfilter_ipv4/ip_tables.h | 1 +
25 2 files changed, 16 insertions(+)
27 diff --git a/extensions/libxt_TCPOPTSTRIP.c b/extensions/libxt_TCPOPTSTRIP.c
28 index 6897857..8a170b2 100644
29 --- a/extensions/libxt_TCPOPTSTRIP.c
30 +++ b/extensions/libxt_TCPOPTSTRIP.c
33 # define TCPOPT_MD5SIG 19
35 +#ifndef TCPOPT_MAXSEG
36 +# define TCPOPT_MAXSEG 2
38 +#ifndef TCPOPT_WINDOW
39 +# define TCPOPT_WINDOW 3
41 +#ifndef TCPOPT_SACK_PERMITTED
42 +# define TCPOPT_SACK_PERMITTED 4
45 +# define TCPOPT_SACK 5
47 +#ifndef TCPOPT_TIMESTAMP
48 +# define TCPOPT_TIMESTAMP 8
53 diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h
54 index 57fd82a..4807246 100644
55 --- a/include/linux/netfilter_ipv4/ip_tables.h
56 +++ b/include/linux/netfilter_ipv4/ip_tables.h
61 +#include <sys/types.h>
62 #include <linux/types.h>
64 #include <linux/netfilter_ipv4.h>