diff mbox

Fix musl compatibility

Message ID 20160222115115.GA17349@mx.elandsys.com
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Loganaden Velvindron Feb. 22, 2016, 11:51 a.m. UTC
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>
---
 extensions/libxt_TCPOPTSTRIP.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Comments

Pablo Neira Ayuso Feb. 29, 2016, 12:54 p.m. UTC | #1
On Mon, Feb 22, 2016 at 03:51:15AM -0800, Loganaden Velvindron wrote:
> Add missing constants for libxt_TCPOPTSTRIP.c, in case they are not defined.
> 
> (Original patch from VoidLinux)

OK, applied. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Loganaden Velvindron Feb. 29, 2016, 1:21 p.m. UTC | #2
> On Mon, Feb 22, 2016 at 03:51:15AM -0800, Loganaden Velvindron wrote:
>> Add missing constants for libxt_TCPOPTSTRIP.c, in case they are not
>> defined.
>>
>> (Original patch from VoidLinux)
>
> OK, applied. Thanks.
>

Thank you Pablo !





--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/extensions/libxt_TCPOPTSTRIP.c b/extensions/libxt_TCPOPTSTRIP.c
index 6897857..828b593 100644
--- a/extensions/libxt_TCPOPTSTRIP.c
+++ b/extensions/libxt_TCPOPTSTRIP.c
@@ -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,