aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-12-19 01:00:35 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-12-19 01:00:39 +0100
commit0e38a3c340e5f21e1796a95ee92b071c258bb185 (patch)
tree280cd0e65dd67fb05ffa21b29b1c6457c327f53d
parentwg-quick: linux: use already configured addresses instead of in-memory (diff)
downloadwireguard-monolithic-historical-0e38a3c340e5f21e1796a95ee92b071c258bb185.tar.xz
wireguard-monolithic-historical-0e38a3c340e5f21e1796a95ee92b071c258bb185.zip
compat: ipv6_dst_lookup_flow was backported to 5.3 and 5.4
-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 3cc3c7f..824f57c 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -861,7 +861,7 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb)
})
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0)
+#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)
#define ipv6_dst_lookup_flow(a, b, c, d) ipv6_dst_lookup(a, b, &dst, c) + (void *)0 ?: dst
#endif