With a little side of applesauce...

Thursday, February 1, 2007

Random Notes on Install of Ubuntu Dapper Drake on Aspire 1691WLMi

1. Cisco VPN Client:

vpnclient-linux-4.7.00.0640-k9.tar.gz
linux-image-2.6.15-8-386

When running vpn_install, I get the following error:


Shutting down /opt/cisco-vpnclient/bin/vpnclient: module cisco_ipsec is not running.
Stopped: /etc/init.d/vpnclient_init (VPN init script)
Making module
make -C /lib/modules/2.6.15-8-386/build SUBDIRS=/home/speeves/downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.15-8-386'
CC [M] /home/speeves/downloads/vpnclient/linuxcniapi.o
/home/speeves/downloads/vpnclient/linuxcniapi.c: In function ‘CniInjectReceive’:
/home/speeves/downloads/vpnclient/linuxcniapi.c:292: error: ‘struct sk_buff’ has no member named ‘stamp’
/home/speeves/downloads/vpnclient/linuxcniapi.c: In function ‘CniInjectSend’:
/home/speeves/downloads/vpnclient/linuxcniapi.c:432: error: ‘struct sk_buff’ has no member named ‘stamp’
make[2]: *** [/home/speeves/downloads/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/speeves/downloads/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-8-386'
make: *** [default] Error 2
Copying module to directory "/lib/modules/2.6.15-8-386/CiscoVPN".
Already have group 'bin'

This error is described here:
http://jason.roysdon.net/?p=754

And the solution is given here:
http://www.redhat.com/archives/fedora-list/2005-November/msg02105.html

Here is the patch found in the URL above:


--- linuxcniapi.c 2005-11-12 11:53:06.000000000 -0600
+++ 2.6.14-vpnclient-linux-4.7.00.0640-linuxcniapi.c 2005-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;

No comments: