This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / linux / netfilter_ipv4 / ip_set_ipporthash.h
1 #ifndef __IP_SET_IPPORTHASH_H
2 #define __IP_SET_IPPORTHASH_H
3
4 #include <linux/netfilter_ipv4/ip_set.h>
5
6 #define SETTYPE_NAME "ipporthash"
7 #define MAX_RANGE 0x0000FFFF
8 #define INVALID_PORT    (MAX_RANGE + 1)
9
10 struct ip_set_ipporthash {
11         ip_set_ip_t *members;           /* the ipporthash proper */
12         uint32_t hashsize;              /* hash size */
13         uint16_t probes;                /* max number of probes  */
14         uint16_t resize;                /* resize factor in percent */
15         ip_set_ip_t first_ip;           /* host byte order, included in range */
16         ip_set_ip_t last_ip;            /* host byte order, included in range */
17         void *initval[0];               /* initvals for jhash_1word */
18 };
19
20 struct ip_set_req_ipporthash_create {
21         uint32_t hashsize;
22         uint16_t probes;
23         uint16_t resize;
24         ip_set_ip_t from;
25         ip_set_ip_t to;
26 };
27
28 struct ip_set_req_ipporthash {
29         ip_set_ip_t ip;
30         ip_set_ip_t port;
31 };
32
33 #endif  /* __IP_SET_IPPORTHASH_H */