]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_TCPOPTSTRIP: Fix musl compatibility
authorLoganaden Velvindron <logan@hackers.mu>
Mon, 22 Feb 2016 11:51:15 +0000 (03:51 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 Feb 2016 12:53:54 +0000 (13:53 +0100)
Add missing constants for libxt_TCPOPTSTRIP.c, in case they are not defined.

(Original patch from VoidLinux)

Signed-off-by: Loganaden Velvindron <logan@hackers.mu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_TCPOPTSTRIP.c

index 6897857317b6cbe2473fa336b25a0caf297c69dc..6ea34892246029508202f498b96e60270a865cd6 100644 (file)
 #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,