summaryrefslogtreecommitdiffhomepage
path: root/src/compat/compat.h
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
commite206c2b9e94ae13a9ccbec51173213265c01367c (patch)
treef3cbf8438d0081befb7a57a63388949b466d7deb /src/compat/compat.h
parentcd431209d5b63c75ca2e3aa382f3105fe16e30e8 (diff)
compat: ipv6_dst_lookup_flow was backported to 5.3 and 5.4
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 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