diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-06-26 04:34:29 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-06-29 16:28:35 -0600 |
commit | 7adc5ff9285ed79f255aafcde3bc5ae71005e013 (patch) | |
tree | a6d0339fb085e4003c4d2edb8ae36152534c588b | |
parent | 3917d7135cc605da3d607df089f16f9773aa67f9 (diff) |
compat: rhel 8.3 backported skb_reset_redirect
Reported-by: Vladimir Benes <vbenes@redhat.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/compat/compat.h | 5 |
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) |