From: Loganaden Velvindron Date: Mon, 22 Feb 2016 11:51:15 +0000 (-0800) Subject: libxt_TCPOPTSTRIP: Fix musl compatibility X-Git-Tag: v1.6.1~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1899fe1762df1cfcc7a0c5088f4947947cd6ea69;p=thirdparty%2Fiptables.git 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 --- 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,