[Swan-dev] linux 3.17 klips patch (untested)

Paul Wouters paul at nohats.ca
Fri Dec 12 22:54:11 EET 2014


On Thu, 11 Dec 2014, Paul Wouters wrote:

>> here's the patch from the IRC chat today.  I haven't tested it but it
>> should be close,
>
> I think the netdev parts work, but there is some other change related to
> sysctl. didn't look into this yet.

The other patchlet needed is:

diff --git a/linux/include/libreswan/ipsec_kversion.h b/linux/include/libreswan/ipsec_kversion.h
index a8bd121..011d51d 100644
--- a/linux/include/libreswan/ipsec_kversion.h
+++ b/linux/include/libreswan/ipsec_kversion.h
@@ -530,6 +530,7 @@
  #ifdef alloc_netdev
  # if LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)
  #  define ipsec_alloc_netdev(a,b,c,d) alloc_netdev(a,b,c,d)
+typedef struct ctl_table ctl_table;
  # else
  #  define ipsec_alloc_netdev(a,b,c,d) alloc_netdev(a,b,d)
  # endif

With that, KLIPS works properly in 3.17 kernels for me,

Paul


More information about the Swan-dev mailing list