[Openswan dev] Fwd: unkown symbol ipsec_nat_encap while insert ipsec.ko

Paul Wouters paul at xelerance.com
Thu Jul 10 10:09:51 EDT 2008


On Thu, 10 Jul 2008, Tian Yazhou wrote:

> I added a CONFIG_IPSEC_NAT_TRAVERSAL=n line in linux/net/ipsec/defconfig to
> disable NAT-T, also tried remove this line. The result is same,
> ipsec_nat_encap unknown when insert ipsec.ko into running kernel.
> 
> ipsec_nat_encap is defined in  linux/net/ipsec/ipsec_xmit.c, but it is
> undefed already by CONFIG_IPSEC_NAT_TRAVERSAL:
>    1727
>    1728 #ifdef CONFIG_IPSEC_NAT_TRAVERSAL

Don't use CONFIG_IPSEC_NAT_TRAVERSAL=n, but surround it with #if 0 in
the linux/net/ipsec/defconfig file.

> I think the problem is in several assembly language file, like
> "modobj26/ipsec_mast.s":

rm -r modobj26 OBJ.*

You should be building in an OBJ.* directory anyway, so i think you
might have compiled it strangly once to get the modobj26 directory.

Paul


More information about the Dev mailing list