From 3d11e595785fcb0728e58d9c0a6d3cd70df8ae53 Mon Sep 17 00:00:00 2001 From: Simon Lelievre Date: Wed, 7 Sep 2016 13:22:58 +0200 Subject: [PATCH] Add backward compatibility for MPTCP_ENABLED (#1) (#807) --- src/netutils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/netutils.h b/src/netutils.h index e9bc3947..d80bf265 100644 --- a/src/netutils.h +++ b/src/netutils.h @@ -52,9 +52,13 @@ #endif -/* Define the flag MPTCP_ENABLED if not defined*/ +/* Backward compatibility for MPTCP_ENABLED between kernel 3 & 4 */ #ifndef MPTCP_ENABLED +#ifdef TCP_CC_INFO #define MPTCP_ENABLED 42 +#else +#define MPTCP_ENABLED 26 +#endif #endif /** byte size of ip4 address */