This commit was manufactured by cvs2svn to create branch 'vserver'.
[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         struct timer_list gc;
26         struct ip_set_iptreeb *tree[256];       /* ADDR.*.*.* */
27 #endif
28 };
29
30 struct ip_set_req_iptree_create {
31         unsigned int timeout;
32 };
33
34 struct ip_set_req_iptree {
35         ip_set_ip_t ip;
36         unsigned int timeout;
37 };
38
39 #endif  /* __IP_SET_IPTREE_H */