ipt_ROUTE bug

John Leach john at johnleach.co.uk
Wed Mar 9 13:11:18 CET 2005


Hi,

on compiling 2.6.11 with the ROUTE target patched in from patch-o-matic
snapshot 20050307, I get the following compile error:

  CC      net/ipv4/netfilter/ipt_ROUTE.o
net/ipv4/netfilter/ipt_ROUTE.c: In function `init':
net/ipv4/netfilter/ipt_ROUTE.c:452: error: structure has no member named
`initialized'
make[4]: *** [net/ipv4/netfilter/ipt_ROUTE.o] Error 1
make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2

the lines causing the problem are in the init() function:

        /* Initialize fake conntrack so that NAT will skip it */
        route_tee_track.nat.info.initialized |=
                (1 << IP_NAT_MANIP_SRC) | (1 << IP_NAT_MANIP_DST);

looking at ip_nat_init() in ip_nat_core.c my guess would be this should
be replaced with:

        route_tee_track.status |= IPS_NAT_DONE_MASK;

any comments?  I'm not at all familiar with the netfilter code, or even
kernel programming :S

John.


-- 
GPG: B89C D450 5B2C 74D8 58FB A360 9B06 B5C2 26F0 3047
WEB: http://johnleach.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/netfilter-devel/attachments/20050309/332b11be/attachment.bin


More information about the netfilter-devel mailing list