From 1899fe1762df1cfcc7a0c5088f4947947cd6ea69 Mon Sep 17 00:00:00 2001 From: Loganaden Velvindron Date: Mon, 22 Feb 2016 03:51:15 -0800 Subject: libxt_TCPOPTSTRIP: Fix musl compatibility Add missing constants for libxt_TCPOPTSTRIP.c, in case they are not defined. (Original patch from VoidLinux) Signed-off-by: Loganaden Velvindron Signed-off-by: Pablo Neira Ayuso --- extensions/libxt_TCPOPTSTRIP.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'extensions/libxt_TCPOPTSTRIP.c') diff --git a/extensions/libxt_TCPOPTSTRIP.c b/extensions/libxt_TCPOPTSTRIP.c index 68978573..6ea34892 100644 --- a/extensions/libxt_TCPOPTSTRIP.c +++ b/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, -- cgit v1.2.3