Skip to content
Deltadroid edited this page May 21, 2019 · 2 revisions

Welcome to the android_kernel_samsung_msm8976 wiki!

Wireguard has been added as a git submodule. Use the following command to download the source code:

git submodule add https://git.zx2c4.com/WireGuard net/wireguard

The patch below must also be applied to the wireguard submodule because wireguard does not support the latest backport commits to 3.10 kernel. The function for rt6_get_cookie() has already been backported to the 3.10 kernel which requires the change below to wireguard.


Author: syphyr <[email protected]>
Date:   Sun Aug 12 20:00:19 2018 +0200

    net: Fix Wireguard compile error
    
    This function has been backported by the following commits:
    
    fixes: "ipv6: Add rt6_get_cookie() function"
    fixes: "ipv6: add rcu grace period before freeing fib6_node"

diff --git a/src/compat/dst_cache/dst_cache.c b/src/compat/dst_cache/dst_cache.c
index 7ec22f7..ca96234 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) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 50)
+#if 0
 static inline u32 rt6_get_cookie(const struct rt6_info *rt)
 {
        if ((unlikely(rt->dst.flags & DST_NOCACHE) && rt->dst.from))
Clone this wiki locally