From bbb1f11d947f3c24ac92cc0be15a719820d06e7f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 13 Nov 2017 19:45:37 +0100 Subject: compat: 3.16.50 got proper rt6_get_cookie Signed-off-by: Jason A. Donenfeld --- src/compat/dst_cache/dst_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compat/dst_cache/dst_cache.c') 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 #if IS_ENABLED(CONFIG_IPV6) #include -#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)) -- cgit v1.2.3