aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2020-04-01 18:32:32 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-04-01 11:58:40 -0600
commita58bd9d967497f784f82bb543d14c81cbfa92a11 (patch)
tree0875eec93ed8f520595f46bee79716c7d82411da /src/compat/compat.h
parentversion: bump (diff)
downloadwireguard-linux-compat-a58bd9d967497f784f82bb543d14c81cbfa92a11.tar.xz
wireguard-linux-compat-a58bd9d967497f784f82bb543d14c81cbfa92a11.zip
compat: queueing: skb_reset_redirect change has been backported to 5.[45]
This is a follow up to 2d4fa2a6e7903ec3340f1b075456cbd84ba6a744. Upstream commit 2c64605b590edadb3fb46d1ec6badb49e940b479 has been backported to 5.4.29 and 5.5.14. Signed-off-by: Christian Hesse <mail@eworm.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r--src/compat/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index fe2d07e..e834081 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -1024,7 +1024,7 @@ out:
#define COMPAT_CANNOT_USE_MAX_MTU
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 29) || (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 14))
#include <linux/skbuff.h>
static inline void skb_reset_redirect(struct sk_buff *skb)
{