stages: 2/02-squashfs: apply some patches from Debian to make the ISO more reliable
[dragora.git] / patches / iptables / iptables-1.6.0-musl-fixes.patch
blob4a89e19999eeb9378ce5cb9b855a643dc29f2b4e
1 --- iptables-1.4.12.1.o/extensions/libip6t_ipv6header.c
2 +++ iptables-1.4.12.1/extensions/libip6t_ipv6header.c
3 @@ -10,6 +10,9 @@
4 #include <netdb.h>
5 #include <xtables.h>
6 #include <linux/netfilter_ipv6/ip6t_ipv6header.h>
7 +#ifndef IPPROTO_HOPOPTS
8 +# define IPPROTO_HOPOPTS 0
9 +#endif
11 enum {
12 O_HEADER = 0,
13 --- iptables-1.4.12.1.o/extensions/libxt_TCPOPTSTRIP.c
14 +++ iptables-1.4.12.1/extensions/libxt_TCPOPTSTRIP.c
15 @@ -12,6 +12,21 @@
16 #ifndef TCPOPT_MD5SIG
17 # define TCPOPT_MD5SIG 19
18 #endif
19 +#ifndef TCPOPT_MAXSEG
20 +# define TCPOPT_MAXSEG 2
21 +#endif
22 +#ifndef TCPOPT_WINDOW
23 +# define TCPOPT_WINDOW 3
24 +#endif
25 +#ifndef TCPOPT_SACK_PERMITTED
26 +# define TCPOPT_SACK_PERMITTED 4
27 +#endif
28 +#ifndef TCPOPT_SACK
29 +# define TCPOPT_SACK 5
30 +#endif
31 +#ifndef TCPOPT_TIMESTAMP
32 +# define TCPOPT_TIMESTAMP 8
33 +#endif
35 enum {
36 O_STRIP_OPTION = 0,
37 --- iptables-1.4.12.1.o/include/linux/netfilter_ipv4/ip_tables.h
38 +++ iptables-1.4.12.1/include/linux/netfilter_ipv4/ip_tables.h
39 @@ -16,6 +16,7 @@
40 #define _IPTABLES_H
42 #include <linux/types.h>
43 +#include <sys/types.h>
45 #include <linux/netfilter_ipv4.h>