With a little side of applesauce...

Monday, February 5, 2007

Cisco vpnclient - Linux kernel 2.6.20 interceptor.h CHECKSUM_HW

After fixing the problem with the missing linux/config.h, I then received:

Making module
make -C /lib/modules/2.6.20-6-generic/build SUBDIRS=/home/speeves/downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-6-generic'
CC [M] /home/speeves/downloads/vpnclient/interceptor.o
In file included from /home/speeves/downloads/vpnclient/Cniapi.h:15,
from /home/speeves/downloads/vpnclient/interceptor.c:30:
/home/speeves/downloads/vpnclient/GenDefs.h:110:2: warning: #warning 64 bit
/home/speeves/downloads/vpnclient/interceptor.c: In function ‘handle_vpnup’:
/home/speeves/downloads/vpnclient/interceptor.c:310: warning: assignment from incompatible pointer type
/home/speeves/downloads/vpnclient/interceptor.c:334: warning: assignment from incompatible pointer type
/home/speeves/downloads/vpnclient/interceptor.c:335: warning: assignment from incompatible pointer type
/home/speeves/downloads/vpnclient/interceptor.c: In function ‘do_cleanup’:
/home/speeves/downloads/vpnclient/interceptor.c:378: warning: assignment from incompatible pointer type
/home/speeves/downloads/vpnclient/interceptor.c: In function ‘recv_ip_packet_handler’:
/home/speeves/downloads/vpnclient/interceptor.c:557: error: too many arguments to function ‘skb_checksum_help’
/home/speeves/downloads/vpnclient/interceptor.c: In function ‘do_cni_send’:
/home/speeves/downloads/vpnclient/interceptor.c:683: error: too many arguments to function ‘skb_checksum_help’
make[2]: *** [/home/speeves/downloads/vpnclient/interceptor.o] Error 1
make[1]: *** [_module_/home/speeves/downloads/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-6-generic'
make: *** [default] Error 2
Copying module to directory "/lib/modules/2.6.20-6-generic/CiscoVPN".


This is fixed thusly:

$ cd /path/to/vpnclient
$ for f in $(grep -r -l CHECKSUM_HW *); do \
> sed -i "s?CHECKSUM_HW?CHECKSUM_COMPLETE?"; done | grep CHECKSUM


Reference:
http://www.tuxx-home.at/projects/cisco-vpnclient/vpnclient-linux-2.6.19.diff

No comments: