Re: Cisco's VPN client in Fedora 7?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Lonni J Friedman" <netllama@xxxxxxxxx> writes:

> Anyone had any success in getting Cisco's Linux VPN client to build &
> install in Fedora 7 (x86)?  I've got version 4.8 of the Cisco client,
> and the install blows up with a ton of errors in
> vpnclient/interceptor.c: In function 'recv_ip_packet_handler'

diff -Nur vpnclient/IPSecDrvOS_linux.c vpnclient.new/IPSecDrvOS_linux.c
--- vpnclient/IPSecDrvOS_linux.c	2005-11-22 10:52:00.000000000 +0100
+++ vpnclient.new/IPSecDrvOS_linux.c	2006-12-06 16:25:49.000000000 +0100
@@ -11,7 +11,7 @@
 *   
 *
 ***************************************************************************/
-#include <linux/config.h>
+#include <linux/autoconf.h>
 #include <linux/version.h>
 #include <linux/vmalloc.h>
 #include <linux/sched.h>
diff -Nur vpnclient/frag.c vpnclient.new/frag.c
--- vpnclient/frag.c	2005-11-22 10:52:00.000000000 +0100
+++ vpnclient.new/frag.c	2006-12-06 16:25:32.000000000 +0100
@@ -1,4 +1,4 @@
-#include <linux/config.h>
+#include <linux/autoconf.h>
 #include <linux/version.h>
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
diff -Nur vpnclient/interceptor.c vpnclient.new/interceptor.c
--- vpnclient/interceptor.c	2005-11-22 10:52:00.000000000 +0100
+++ vpnclient.new/interceptor.c	2006-12-07 09:13:29.000000000 +0100
@@ -8,7 +8,7 @@
 ***************************************************************************
 * This module implements the linux driver.
 ***************************************************************************/
-#include <linux/config.h>
+#include <linux/autoconf.h>
 #include <linux/version.h>
 #include <linux/module.h>
 #include <linux/init.h>
@@ -33,6 +33,14 @@
 #include "mtu.h"
 #include "unixkernelapi.h"
 
+// With linux 2.6.19, they renamed CHECKSUM_HW to CHECKSUM_COMPLETE
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
+  #define CHECKSUM_HW CHECKSUM_COMPLETE
+  #define SKB_CHECKSUM_HELP(a,b)	skb_checksum_help((a))
+#else
+  #define SKB_CHECKSUM_HELP(a,b)	skb_checksum_help((a),(b))
+#endif
+
 static uint8_t interceptor_eth_addr[] = { 0x00, 0x0b, 0xfc, 0xf8, 0x01, 0x8f };
 
 // packet statistics 
@@ -554,9 +562,9 @@
     {
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,7)
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
-       if (skb_checksum_help(skb,1))
+       if (SKB_CHECKSUM_HELP(skb,1))
 #else
-       if (skb_checksum_help(&skb,1))
+       if (SKB_CHECKSUM_HELP(&skb,1))
 #endif // LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
        {
            dev_kfree_skb(skb);
@@ -680,11 +688,11 @@
     if (skb->ip_summed == CHECKSUM_HW)
     {
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
-       if (skb_checksum_help(skb,0))
+       if (SKB_CHECKSUM_HELP(skb,0))
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,7)
-       if (skb_checksum_help(&skb,0))
+       if (SKB_CHECKSUM_HELP(&skb,0))
 #else
-       if ((skb = skb_checksum_help(skb)) == NULL)
+       if ((skb = SKB_CHECKSUM_HELP(skb)) == NULL)
 #endif //LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,7)
        {
            goto exit_gracefully;
diff -Nur vpnclient/linuxcniapi.c vpnclient.new/linuxcniapi.c
--- vpnclient/linuxcniapi.c	2005-11-22 10:52:00.000000000 +0100
+++ vpnclient.new/linuxcniapi.c	2006-12-06 16:24:51.000000000 +0100
@@ -9,7 +9,7 @@
  * This module implements a translation layer between the CNI API and the
  * Linux Interceptor driver.
  ***************************************************************************/
-#include <linux/config.h>
+#include <linux/autoconf.h>
 #include <linux/version.h>
 #include <linux/netdevice.h>
 #include <linux/if.h>
Lonni,

Try the attached patch file. There have been issues with the Cisco client dating back to the 2.6.19 kernels.

I have used this patch on version 4.8 for some time and it loads fine under F7.

If there are problems with the attachment, try it from here:

  http://home.comcast.net/~marc_schwartz/vpnclient-linux-2.6.19.diff

HTH,

Marc Schwartz

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux