aboutsummaryrefslogtreecommitdiffstats
path: root/main/iptables/iptables-1.6.0-musl-fixes.patch
diff options
context:
space:
mode:
authorChristian Kampka <christian@kampka.net>2016-03-26 12:35:57 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-29 10:05:56 +0000
commit534e6a9253c00fd3964358b8d37aa447acdf6606 (patch)
tree26c3fda1c3f67c982f414c9e3a30d10a1c0dcfde /main/iptables/iptables-1.6.0-musl-fixes.patch
parent3a55215ece0063a70155c790d9dc1e78e0e5dd56 (diff)
downloadaports-534e6a9253c00fd3964358b8d37aa447acdf6606.tar.bz2
aports-534e6a9253c00fd3964358b8d37aa447acdf6606.tar.xz
main/iptables: new upstream verison 1.6.0
Diffstat (limited to 'main/iptables/iptables-1.6.0-musl-fixes.patch')
-rw-r--r--main/iptables/iptables-1.6.0-musl-fixes.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/iptables/iptables-1.6.0-musl-fixes.patch b/main/iptables/iptables-1.6.0-musl-fixes.patch
new file mode 100644
index 0000000000..4a89e19999
--- /dev/null
+++ b/main/iptables/iptables-1.6.0-musl-fixes.patch
@@ -0,0 +1,45 @@
+--- iptables-1.4.12.1.o/extensions/libip6t_ipv6header.c
++++ iptables-1.4.12.1/extensions/libip6t_ipv6header.c
+@@ -10,6 +10,9 @@
+ #include <netdb.h>
+ #include <xtables.h>
+ #include <linux/netfilter_ipv6/ip6t_ipv6header.h>
++#ifndef IPPROTO_HOPOPTS
++# define IPPROTO_HOPOPTS 0
++#endif
+
+ enum {
+ O_HEADER = 0,
+--- iptables-1.4.12.1.o/extensions/libxt_TCPOPTSTRIP.c
++++ iptables-1.4.12.1/extensions/libxt_TCPOPTSTRIP.c
+@@ -12,6 +12,21 @@
+ #ifndef TCPOPT_MD5SIG
+ # define TCPOPT_MD5SIG 19
+ #endif
++#ifndef TCPOPT_MAXSEG
++# define TCPOPT_MAXSEG 2
++#endif
++#ifndef TCPOPT_WINDOW
++# define TCPOPT_WINDOW 3
++#endif
++#ifndef TCPOPT_SACK_PERMITTED
++# define TCPOPT_SACK_PERMITTED 4
++#endif
++#ifndef TCPOPT_SACK
++# define TCPOPT_SACK 5
++#endif
++#ifndef TCPOPT_TIMESTAMP
++# define TCPOPT_TIMESTAMP 8
++#endif
+
+ enum {
+ O_STRIP_OPTION = 0,
+--- iptables-1.4.12.1.o/include/linux/netfilter_ipv4/ip_tables.h
++++ iptables-1.4.12.1/include/linux/netfilter_ipv4/ip_tables.h
+@@ -16,6 +16,7 @@
+ #define _IPTABLES_H
+
+ #include <linux/types.h>
++#include <sys/types.h>
+
+ #include <linux/netfilter_ipv4.h>