aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-06-26 04:34:29 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-06-29 16:28:35 -0600
commit7adc5ff9285ed79f255aafcde3bc5ae71005e013 (patch)
treea6d0339fb085e4003c4d2edb8ae36152534c588b /src/compat/compat.h
parentreceive: account for napi_gro_receive never returning GRO_DROP (diff)
downloadwireguard-linux-compat-7adc5ff9285ed79f255aafcde3bc5ae71005e013.tar.xz
wireguard-linux-compat-7adc5ff9285ed79f255aafcde3bc5ae71005e013.zip
compat: rhel 8.3 backported skb_reset_redirect
Reported-by: Vladimir Benes <vbenes@redhat.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r--src/compat/compat.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index bf0b589..b7650c4 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -16,6 +16,9 @@
#define ISRHEL7
#elif RHEL_MAJOR == 8
#define ISRHEL8
+#if RHEL_MINOR == 2
+#define ISCENTOS8
+#endif
#endif
#endif
#ifdef UTS_UBUNTU_RELEASE_ABI
@@ -1012,7 +1015,7 @@ out:
#define COMPAT_CANNOT_USE_MAX_MTU
#endif
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 14) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)) || (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 29) && !defined(ISUBUNTU1910) && !defined(ISUBUNTU1904))
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 14) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)) || (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 29) && !defined(ISUBUNTU1910) && !defined(ISUBUNTU1904) && (!defined(ISRHEL8) || defined(ISCENTOS8)))
#include <linux/skbuff.h>
#include <net/sch_generic.h>
static inline void skb_reset_redirect(struct sk_buff *skb)