Wednesday, February 28, 2007

Cisco VPN Client and Linux Kernel 2.6.19

Was trying to install the Cisco VPN client for Linux on a Fedora Core 6 (kernel 2.6.19) system and ran into some errors. First it complained about linux/config.h not being present and accounted for. Did some googling, turns out that you should be using linux/autoconf.h instead of ye olde linux/config.h. That's cool. But even after doing a

sed -i 's/\/config\.h/\/autoconf\.h/' *.c

I still got a bunch of build errors from interceptor.c, specifically "CHECKSUM_HW undeclared" and "too many arguments to function skb_checksum_help". Great. More googling. Turns out that CHECKSUM_HW got replaced by CHECKSUM_PARTIAL and CHECKSUM_COMPLETE (see for details), and skb_checksum_help's argument list changed.

So more googling, and I found the terribly helpful page put up by Alexander Griesser on Cisco VPN Client and Linux Kernel 2.6.19, which includes a vpnclient-linux-2.6.19.diff file you can use for easy patching. w00t!

1 comment: