aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-03 17:58:23 +0800
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-03 17:58:40 +0800
commit279f36f2f608c0a838ee3b4b2aeeea10c7c97931 (patch)
tree83ee379397d473e29af03b783ce26d37114e3c91 /src/compat/compat.h
parentcurve25519-x86_64: avoid use of r12 (diff)
downloadwireguard-linux-compat-279f36f2f608c0a838ee3b4b2aeeea10c7c97931.tar.xz
wireguard-linux-compat-279f36f2f608c0a838ee3b4b2aeeea10c7c97931.zip
compat: RHEL 8.2 backported ipv6_dst_lookup_flow
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 1aa0e7b..42f7bee 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -870,7 +870,7 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb)
})
#endif
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 5) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 18)
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 5) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)) || (LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 18) && !defined(ISRHEL82))
#define ipv6_dst_lookup_flow(a, b, c, d) ipv6_dst_lookup(a, b, &dst, c) + (void *)0 ?: dst
#endif