From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emmanuel Guiton Subject: Re: Changing the content of tcp timeouts in ip_conntrack_proto_tcp.c Date: Wed, 14 Jan 2004 14:39:15 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <40053873.6000806@netlab.hut.fi> References: Reply-To: emmanuel@netlab.hut.fi Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: "netfilter-devel@lists.netfilter.org" Return-path: Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org Henrik Nordstrom wrote: >On Wed, 14 Jan 2004, Emmanuel Guiton wrote: > > > >>In the target module I'm writing, I need to customize the values >>ip_ct_tcp_timeout_/somthing/ in the ip_conntrack_proto_tcp.c file. I >>tried to write an extern function on the model of ip_ct_refresh, but I >>always got the same problem with depmod: >> >>depmod: *** Unresolved symbols in >>/lib/modules/2.4.23/kernel/net/ipv4/netfilter/ipt_MY_TARGET.o >>depmod: ip_ct_proto_tcp_set_timeouts >> >>Does someone have a good advice on how to proceed correctly? >> >> > >Looks like you have not exported this function from ip_conntrack. To use a >function from another module than it is defined in the function must first >be exported from the module where it is defined. > >Regards >Henrik > > Well, I think I did. I defined my function in the ip_conntrack_proto_tcp.c and I exported its prototype in ip_conntrack.h. Then I call it in my target module which also uses ip_conntrack.h. Should I have done otherwise? Emmanuel