Cisco VPN Client Error


Cisco VPN Client Error

On some versions of the Linux 2.6 kernel, Cisco 4.7 fails

Create a file with the following content.

--------------------------------------------------------------------- 

--- linuxcniapi.c\t2005-11-12 11:53:06.000000000 -0600 
+++ 2.6.14-vpnclient-linux-4.7.00.0640-linuxcniapi.c\t2005-11-12 11:49:20.000000000 -0600 
@@ -276,6 +276,8 @@ 
 struct sk_buff *skb = NULL; 
 unsigned char *pIP = NULL, *pMac = NULL; 

+ struct timeval timecount; 
+ 
 /* we need to build the actual sk_buff from the packet structure */ 
 pBinding = (PBINDING) Binding; 
 lpPacketDescriptor = (LPPACKETDESCRIPTOR) Packet; 
@@ -289,7 +291,10 @@ 
 goto exit_gracefully; 
 } 
 /* move the data into the packet */ 
- do_gettimeofday(&skb->stamp); 
+ do_gettimeofday(&timecount); 
+ 
+ skb->tstamp.off_sec = (u32) timecount.tv_sec; 
+ skb->tstamp.off_usec = (u32) timecount.tv_usec; 
 
 pIP = skb_put(skb, lpPacketDescriptor->uiPacketSize); 
 
@@ -389,6 +394,8 @@ 
 unsigned char *pIP = NULL, *pMac = NULL; 
 int tmp_rc = 0; 
 
+ struct timeval timecount; 
+ 
 int (*tmp_InjectSend) (struct sk_buff * skb, struct net_device * dev); 
tmp_InjectSend = NULL; 

@@ -429,7 +436,10 @@ 
CniGetPacketData(Packet, 0, lpPacketDescriptor->uiPacketSize, pIP); 

/* put the mac header on */ 
- do_gettimeofday(&skb->stamp); 
+ do_gettimeofday(&timecount); 
+ 
+ skb->tstamp.off_sec = (u32) timecount.tv_sec; 
+ skb->tstamp.off_usec = (u32) timecount.tv_usec; 

skb->dev = pBinding->pDevice; 
--------------------------------------------------------------------- 

Now, go into the source directory of the vpn client and perform Cisco VPN Client Error

Last update:
2012-02-03 07:04
Author:
Rod
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.