[UCI-Linux] Error when compiling Cisco VPN client on 2.6.14 kernel

Mike Iglesias iglesias at draco.acs.uci.edu
Wed Nov 16 11:23:13 PST 2005


If you are running Fedora Core 4 (or any linux system with a 2.6.14 kernel),
the current release of the Cisco VPN client will not compile correctly
with a 2.6.14 kernel.

To fix this, untar the vpnclient tar file and apply this patch:

---------------------------- cut here ----------------------------------
--- linuxcniapi.c.dist	2005-09-13 20:12:39.000000000 -0700
+++ linuxcniapi.c	2005-11-16 11:16:35.000000000 -0800
@@ -289,7 +289,16 @@
         goto exit_gracefully;
     }
     /* move the data into the packet */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)
+    {
+      struct timeval timestamp;
+
+      do_gettimeofday(&timestamp);
+      skb_set_timestamp(skb,&timestamp);
+    }
+#else
     do_gettimeofday(&skb->stamp);
+#endif
 
     pIP = skb_put(skb, lpPacketDescriptor->uiPacketSize);
 
@@ -429,7 +438,16 @@
     CniGetPacketData(Packet, 0, lpPacketDescriptor->uiPacketSize, pIP);
 
     /* put the mac header on */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)
+    {
+      struct timeval timestamp;
+
+      do_gettimeofday(&timestamp);
+      skb_set_timestamp(skb,&timestamp);
+    }
+#else
     do_gettimeofday(&skb->stamp);
+#endif
 
     skb->dev = pBinding->pDevice;

---------------------------- cut here ----------------------------------
 
Then do a ./vpn_install to build/install the VPN client software.

I've only done some limited testing but it appear to work ok.


Mike Iglesias                          Email:       iglesias at draco.acs.uci.edu
University of California, Irvine       phone:       949-824-6926
Network & Academic Computing Services  FAX:         949-824-2069


More information about the UCI-Linux mailing list