I also had this problem, however after a little digging around the 
source, I think I found a solution, as follows...


In the file:
   linux/net/ipv4/netfilter/ip_conntrack_standalone.c
the code that produces the error is:

static int kill_proto(const struct ip_conntrack *i, void *data)
{
        return (i->tuplehash[IP_CT_DIR_ORIGINAL].dst.protonum ==
                        *((u_int8_t *) data));
}

but I _believe_ it should read:

static int kill_proto(const struct ip_conntrack *i, void *data)
{
        return (i->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum ==
                        *((u_int8_t *) data));
}



I deduced this from the header file

   linux/include/linux/netfilter_ipv4/ip_conntrack.h

that defines the structure 'ip_contrack'. Within this there is

   struct ip_conntrack_tuple_hash tuplehash[IP_CT_DIR_MAX]

The definition of ip_conntrack_tuple_hash is found in

   linux/include/linux/netfilter_ipv4/ip_conntrack_tuple.h

within this structure there is a 'ip_conntrack_tuple' structure,
looking at it we find the dst structure.


Please note: I'm new to the netfilter source!

Regards
Gordon


clemenca wrote:
> have the same troubles
> 
>   
>   _____  
> 
> Clemenca´s Place 
>   
> Clemens Fida 
> Kirchenplatz 5, 2301 Grossenzersdorf,  Austria 
> Phone: 0664-543-53-64 
> mailto:[EMAIL PROTECTED] 
> Visit http://www.clemenca.at/ 
>   
> 
> 
> Never argue with an idiot. They drag you down to their level, then beat you with 
>experience.
> 
>  
> 
>  
> 
>  
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Micke [mailto:[EMAIL PROTECTED]] 
> Gesendet: Freitag, 15. März 2002 16:20
> An: Frank Fiene; Netfilter
> Betreff: Re: Kernel compile error after applying pending patches
> 
> 
> 
> ----- Original Message -----
> From: "Frank Fiene" <[EMAIL PROTECTED]>
> To: "Netfilter" <[EMAIL PROTECTED]>
> Sent: Thursday, March 14, 2002 10:28 PM
> Subject: Kernel compile error after applying pending patches
> 
> 
> 
>>Hi,
>>
>>i have problems to compile a virgin 2.4.18 kernel after applying the 
>>pending patches from cvs. make modules ays:
>>
>>ip_conntrack_standalone.c: In function `kill_proto':
>>ip_conntrack_standalone.c:41: structure has no member named `dst'
>>ip_conntrack_standalone.c:43: warning: control reaches end of non-void 
>>function
>>make[2]: *** [ip_conntrack_standalone.o] Error 1
>>make[2]: Leaving directory `/usr/src/linux/net/ipv4/netfilter'
>>make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
>>make[1]: Leaving directory `/usr/src/linux/net'
>>make: *** [_mod_net] Error 2
>>
>>What is happening? There is no variable "dst" in structure 
>>ip_conntrack_tuple in 
>>/usr/src/include/linux/netfilter_ipv4/ip_conntrack_tuple.h (i hope i 
>>found the right place :-) ).
>>
>>Regards, Frank.
>>--
>>SYNTAGS GmbH, Märkische Str. 237, D-44141 Dortmund, Germany Security, 
>>Cryptography, Networks, Software Development http://www.syntags.de 
>>mailto:[EMAIL PROTECTED]
>>
>>
> 
> Hi there Frank !
> 
> I am also running kernel 2.4.18 and have the exact same problem as you when I try to 
>compile it with the pending-patches in iptables 1.2.6 or even patch-o-matic for that 
>matter. I hope the netfilter team fix that soon and that they see our problems here 
>=) Seems a bit serious if u can`t even compile the stuff. And I want that new local 
>NAT -feature bad =)
> 
> Regards
> /Micke
> 
> 
> 
> 




Reply via email to