--- linuxcniapi.bak 2006-12-02 18:25:53.000000000 -0400 +++ linuxcniapi.c 2006-12-02 18:26:15.000000000 -0400 @@ -9,7 +9,7 @@ * This module implements a translation layer between the CNI API and the * Linux Interceptor driver. ***************************************************************************/ -#include +#include #include #include #include --- frag.bak 2006-12-02 18:26:25.000000000 -0400 +++ frag.c 2006-12-02 18:28:09.000000000 -0400 @@ -1,4 +1,4 @@ -#include +#include #include #include #include --- IPSecDrvOS_linux.bak 2006-12-02 18:27:25.000000000 -0400 +++ IPSecDrvOS_linux.c 2006-12-02 18:27:36.000000000 -0400 @@ -11,7 +11,7 @@ * * ***************************************************************************/ -#include +#include #include #include #include --- interceptor.bak 2006-12-02 18:33:24.000000000 -0400 +++ interceptor.c 2006-12-02 18:32:12.000000000 -0400 @@ -8,7 +8,7 @@ *************************************************************************** * This module implements the linux driver. ***************************************************************************/ -#include +#include #include #include #include @@ -550,10 +550,12 @@ goto exit_gracefully; } - if (skb->ip_summed == CHECKSUM_HW) + if (skb->ip_summed == CHECKSUM_COMPLETE) { #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,7) -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) + if(skb_checksum_help(skb)) +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10) if (skb_checksum_help(skb,1)) #else if (skb_checksum_help(&skb,1)) @@ -677,9 +679,11 @@ tmp_InjectSend = NULL; #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) - if (skb->ip_summed == CHECKSUM_HW) + if (skb->ip_summed == CHECKSUM_COMPLETE) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) + if(skb_checksum_help(skb)) +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10) if (skb_checksum_help(skb,0)) #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,7) if (skb_checksum_help(&skb,0))