Re: ipset and kernel 2.6.22

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi list,

just wanted to ask if i'm the only one who is unable to compile
an ipset-patched kernel 2.6.22...
(any of the devs around? - can't find any contact address at the
ipset website)

Use patch 130-netfilter-ipset.patch
from this page https://dev.openwrt.org/browser/trunk/target/linux/generic-2.6/patches-2.6.22/

In my opninion ipset iptree still does not work as it should be.
My test:

[]# ipset -N viruses iptree --timeout 100
[]# ipset -A viruses 172.16.14.12

Test1:
[]# ipset -T viruses 172.16.14.12
172.16.14.12 is in set viruses
Test2:
[]# ipset -T viruses 172.16.14.111
172.16.14.111 is in set viruses
Test3:
[]# ipset -T viruses 172.16.140.111
172.16.140.111 is NOT in set viruses

...

Test2 172.16.14.111 shoud NOT be in set viruses, every IP from example subnet 172.16.14.0/24
is reported as "in set", (look at test2).

Everything is ok after IPTRE_GC_TIME 5*60  (line 33 in ip_set_iptree.c)
When I changed this label to 60 this module iptree worked ok after 60s.

To test again you have to unload ipset module. Something is wrong few minutes
after module is loaded...

I do not know if any other ipset module has bugs.



  CC [M]  net/ipv4/netfilter/ipt_SET.o
net/ipv4/netfilter/ipt_SET.c:25:46: error: linux/netfilter_ipv4/ip_nat_rule.h: No such file or directory net/ipv4/netfilter/ipt_SET.c:40: warning: 'struct xt_target' declared inside parameter list net/ipv4/netfilter/ipt_SET.c:40: warning: its scope is only this definition or declaration, which is probably not what you want
net/ipv4/netfilter/ipt_SET.c: In function 'target':
net/ipv4/netfilter/ipt_SET.c:54: error: 'IPT_CONTINUE' undeclared (first use in this function) net/ipv4/netfilter/ipt_SET.c:54: error: (Each undeclared identifier is reported only once
net/ipv4/netfilter/ipt_SET.c:54: error: for each function it appears in.)
net/ipv4/netfilter/ipt_SET.c: At top level:
net/ipv4/netfilter/ipt_SET.c:71: warning: 'struct xt_target' declared inside parameter list net/ipv4/netfilter/ipt_SET.c:117: warning: 'struct xt_target' declared inside parameter list net/ipv4/netfilter/ipt_SET.c:134: error: variable 'SET_target' has initializer but incomplete type net/ipv4/netfilter/ipt_SET.c:135: error: unknown field 'name' specified in initializer net/ipv4/netfilter/ipt_SET.c:135: warning: excess elements in struct initializer net/ipv4/netfilter/ipt_SET.c:135: warning: (near initialization for 'SET_target') net/ipv4/netfilter/ipt_SET.c:137: error: unknown field 'family' specified in initializer net/ipv4/netfilter/ipt_SET.c:137: warning: excess elements in struct initializer net/ipv4/netfilter/ipt_SET.c:137: warning: (near initialization for 'SET_target') net/ipv4/netfilter/ipt_SET.c:139: error: unknown field 'target' specified in initializer net/ipv4/netfilter/ipt_SET.c:139: warning: excess elements in struct initializer net/ipv4/netfilter/ipt_SET.c:139: warning: (near initialization for 'SET_target') net/ipv4/netfilter/ipt_SET.c:141: error: unknown field 'targetsize' specified in initializer net/ipv4/netfilter/ipt_SET.c:141: warning: excess elements in struct initializer net/ipv4/netfilter/ipt_SET.c:141: warning: (near initialization for 'SET_target') net/ipv4/netfilter/ipt_SET.c:143: error: unknown field 'checkentry' specified in initializer net/ipv4/netfilter/ipt_SET.c:143: warning: excess elements in struct initializer net/ipv4/netfilter/ipt_SET.c:143: warning: (near initialization for 'SET_target') net/ipv4/netfilter/ipt_SET.c:144: error: unknown field 'destroy' specified in initializer net/ipv4/netfilter/ipt_SET.c:144: warning: excess elements in struct initializer net/ipv4/netfilter/ipt_SET.c:144: warning: (near initialization for 'SET_target') net/ipv4/netfilter/ipt_SET.c:145: error: unknown field 'me' specified in initializer net/ipv4/netfilter/ipt_SET.c:146: warning: excess elements in struct initializer net/ipv4/netfilter/ipt_SET.c:146: warning: (near initialization for 'SET_target')
net/ipv4/netfilter/ipt_SET.c: In function 'ipt_SET_init':
net/ipv4/netfilter/ipt_SET.c:159: warning: implicit declaration of function 'xt_register_target'
net/ipv4/netfilter/ipt_SET.c: In function 'ipt_SET_fini':
net/ipv4/netfilter/ipt_SET.c:164: warning: implicit declaration of function 'xt_unregister_target'
make[3]: *** [net/ipv4/netfilter/ipt_SET.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
anyone?


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux