aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/dst_cache
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
commitbbb1f11d947f3c24ac92cc0be15a719820d06e7f (patch)
tree7213310689ac156dc232f7162f51447259c909e6 /src/compat/dst_cache
parentqemu: update kernel (diff)
downloadwireguard-linux-compat-bbb1f11d947f3c24ac92cc0be15a719820d06e7f.tar.xz
wireguard-linux-compat-bbb1f11d947f3c24ac92cc0be15a719820d06e7f.zip
compat: 3.16.50 got proper rt6_get_cookie
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/dst_cache')
-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))