netdev
[Top] [All Lists]

[IPV6] problem with xfrm6_tunnel_check_size

To: Linux Net <netdev@xxxxxxxxxxx>
Subject: [IPV6] problem with xfrm6_tunnel_check_size
From: "Daniel 'NebuchadnezzaR' Dehennin" <nebuchadnezzar@xxxxxxxxx>
Date: Sun, 12 Oct 2003 14:04:12 +0200
Organisation: CaLviX
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)
Hello,

I try to compile a 2.6.0-test7 with usagi 20031012 but I have the following
error:

net/built-in.o(.text+0x599f3): dans la fonction « xfrm_check_output »:
: undefined reference to `xfrm6_tunnel_check_size'
make[1]: *** [.tmp_vmlinux1] Erreur 1
make[1]: Leaving directory `/usr/src/linux-2.6.0-test7'
make: *** [stamp-build] Erreur 2

I try to figure out the problem by myself but I don't manage to do it.
Here is what I do:

Search xfrm6_tunnel_check_size in net/:
net/ipv6/ipv6_syms.c:EXPORT_SYMBOL(xfrm6_tunnel_check_size);
net/ipv6/xfrm6_tunnel.c:int xfrm6_tunnel_check_size(struct sk_buff *skb)
net/ipv6/xfrm6_tunnel.c:        if ((err = xfrm6_tunnel_check_size(skb)) != 0)
net/xfrm/xfrm_output.c:                 err = xfrm6_tunnel_check_size(skb);

Search xfrm6_tunnel_check_size in include/:
include/net/xfrm.h:extern int xfrm6_tunnel_check_size(struct sk_buff *skb);

Search xfrm4_tunnel_check_size in net/:
net/ipv4/xfrm4_tunnel.c:int xfrm4_tunnel_check_size(struct sk_buff *skb)
net/ipv4/xfrm4_tunnel.c:        if ((err = xfrm4_tunnel_check_size(skb)) != 0)
net/xfrm/xfrm_export.c:EXPORT_SYMBOL(xfrm4_tunnel_check_size);
net/xfrm/xfrm_output.c:                 err = xfrm4_tunnel_check_size(skb);

Search xfrm4_tunnel_check_size in include/:
include/net/xfrm.h:extern int xfrm4_tunnel_check_size(struct sk_buff *skb);

I see that building xfrm we use xfrm_export in with
xfrm4_tunnel_check_size is exported but xfrm6_tunnel_check_size is in
ipv6/ip6_syms.c, is this a way to solve the problem ?

Is there a reason to have an ipv6_syms and not an ipv4_syms ?

Thanks.

-- 
Daniel 'NebuchadnezzaR' Dehennin


<Prev in Thread] Current Thread [Next in Thread>
  • [IPV6] problem with xfrm6_tunnel_check_size, Daniel 'NebuchadnezzaR' Dehennin <=