[Openswan Users] Trouble getting NAT-T patch to work

Paul Wouters paul at xelerance.com
Thu Jan 1 19:54:54 EST 2009


On Wed, 31 Dec 2008, Jonathan Larsen wrote:

Please try 2.6.20rc1 (from testing/) as we fixed some header defines that
were wrong for some kernels.

Paul

> Date: Wed, 31 Dec 2008 07:57:47 -0700
> From: Jonathan Larsen <jon at heartslc.com>
> To:  <users at openswan.org>
> Subject: [Openswan Users] Trouble getting NAT-T patch to work
> 
> I am using Slackware 12.1 for my servers which runs Kernel 2.6.24.5.  I have had no luck with the patch working, just get 6 hunk failures on udp.c.  So i've downloaded kernels directly from kernel.org.  the one i've had the most luck with is 2.6.19.  I am also using openswan 2.6.19.  Patch works fine.  Recompile the kernel, no problem.  go to make module in the openswan dir and i have problems.  Maybe there is a recommended kernel to use?  Below is the compile issues i had with make module.
> 
> ln -s -f /usr/src/openswan-2.6.19/linux/net/ipsec/ipsec_xmit.c /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c
> 
>   CC [M]  /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.o
> 
> /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c: In function 'ipsec_xmit_esp':
> 
> /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c:729: warning: implicit declaration of function 'skb_set_transport_header'
> 
> /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c: In function 'ipsec_xmit_cont':
> 
> /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c:1072: warning: implicit declaration of function 'skb_set_network_header'
> 
> /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c: In function 'ipsec_xmit_send':
> 
> /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c:2006: warning: passing argument 2 of 'ip_route_output_key' from incompatible pointer type
> 
> /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c:2046: warning: implicit declaration of function 'skb_network_header'
> 
> /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c:2046: error: invalid operands to binary -
> 
> /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c:2053: error: invalid operands to binary -
> 
> /usr/src/openswan-2.6.19/modobj26/ipsec_xmit.c:2057: error: invalid operands to binary -
> 
> make[3]: *** [/usr/src/openswan-2.6.19/modobj26/ipsec_xmit.o] Error 1
> 
> make[2]: *** [_module_/usr/src/openswan-2.6.19/modobj26] Error 2
> 
> make[2]: Leaving directory `/usr/src/linux-2.6.19'
> 
> make[1]: *** [module26] Error 2
> 
> make[1]: Leaving directory `/usr/src/openswan-2.6.19'
> 
> make: *** [module] Error 2
> 
> 
> 


More information about the Users mailing list