aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-13 19:45:37 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-14 10:24:20 +0100
commitd355e574a72b7af2150a7c48b9b5419051346f59 (patch)
tree1e668625abfc8aee00329c7e23b429f2e5fa2a34
parentqemu: update kernel (diff)
downloadwireguard-monolithic-historical-d355e574a72b7af2150a7c48b9b5419051346f59.tar.xz
wireguard-monolithic-historical-d355e574a72b7af2150a7c48b9b5419051346f59.zip
compat: 3.16.50 got proper rt6_get_cookie
-rw-r--r--src/compat/dst_cache/dst_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/dst_cache/dst_cache.c b/src/compat/dst_cache/dst_cache.c
index 3f7b1bd..7ec22f7 100644
--- a/src/compat/dst_cache/dst_cache.c
+++ b/src/compat/dst_cache/dst_cache.c
@@ -15,7 +15,7 @@
#include <net/route.h>
#if IS_ENABLED(CONFIG_IPV6)
#include <net/ip6_fib.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0)
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 50)
static inline u32 rt6_get_cookie(const struct rt6_info *rt)
{
if ((unlikely(rt->dst.flags & DST_NOCACHE) && rt->dst.from))