Skip to contentSkip to conversation

Fix musl compatibility

PATCH In review Loganaden Velvindron 2 participants 3 messages Feb 22, 2016 – Feb 29, 2016 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix musl compatibility

Add missing constants for libxt_TCPOPTSTRIP.c, in case they are not defined.

(Original patch from VoidLinux)

---
 extensions/libxt_TCPOPTSTRIP.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
extensions/libxt_TCPOPTSTRIP.c +16 -0
index 6897857..828b593 100644
@@ -12,6 +12,22 @@
 #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,
Signature · 1 line
2.7.0
#1 lore raw
Quoted 3 lines · Loganaden Velvindron

Add missing constants for libxt_TCPOPTSTRIP.c, in case they are not defined.

(Original patch from VoidLinux)

OK, applied. Thanks.

#2 lore raw
Quoted 8 lines · Loganaden Velvindron
Quoted 4 lines

Add missing constants for libxt_TCPOPTSTRIP.c, in case they are not defined.

(Original patch from VoidLinux)

OK, applied. Thanks.

Thank you Pablo !