Merge to Fedora kernel-2.6.18-1.2260_FC5 patched with stable patch-2.6.18.5-vs2.0...
[linux-2.6.git] / include / linux / netfilter_ipv4 / ip_set_iptree.h
1 #ifndef __IP_SET_IPTREE_H
2 #define __IP_SET_IPTREE_H
3
4 #include <linux/netfilter_ipv4/ip_set.h>
5
6 #define SETTYPE_NAME "iptree"
7 #define MAX_RANGE 0x0000FFFF
8
9 struct ip_set_iptreed {
10         unsigned long expires[256];             /* x.x.x.ADDR */
11 };
12
13 struct ip_set_iptreec {
14         struct ip_set_iptreed *tree[256];       /* x.x.ADDR.* */
15 };
16
17 struct ip_set_iptreeb {
18         struct ip_set_iptreec *tree[256];       /* x.ADDR.*.* */
19 };
20
21 struct ip_set_iptree {
22         unsigned int timeout;
23         unsigned int gc_interval;
24 #ifdef __KERNEL__
25         uint32_t elements;              /* number of elements */
26         struct timer_list gc;
27         struct ip_set_iptreeb *tree[256];       /* ADDR.*.*.* */
28 #endif
29 };
30
31 struct ip_set_req_iptree_create {
32         unsigned int timeout;
33 };
34
35 struct ip_set_req_iptree {
36         ip_set_ip_t ip;
37         unsigned int timeout;
38 };
39
40 #endif  /* __IP_SET_IPTREE_H */