allow coexistance of N build and AC build.
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / include / linux / netfilter_ipv4 / ip_set_ipportnethash.h
blob73b24307bd560f9831f1745cbf120ea97da56c20
1 #ifndef __IP_SET_IPPORTNETHASH_H
2 #define __IP_SET_IPPORTNETHASH_H
4 #include <linux/netfilter_ipv4/ip_set.h>
5 #include <linux/netfilter_ipv4/ip_set_hashes.h>
7 #define SETTYPE_NAME "ipportnethash"
9 struct ipportip {
10 ip_set_ip_t ip;
11 ip_set_ip_t ip1;
14 struct ip_set_ipportnethash {
15 struct ipportip *members; /* the ipportip proper */
16 uint32_t elements; /* number of elements */
17 uint32_t hashsize; /* hash size */
18 uint16_t probes; /* max number of probes */
19 uint16_t resize; /* resize factor in percent */
20 ip_set_ip_t first_ip; /* host byte order, included in range */
21 ip_set_ip_t last_ip; /* host byte order, included in range */
22 uint8_t cidr[30]; /* CIDR sizes */
23 uint16_t nets[30]; /* nr of nets by CIDR sizes */
24 initval_t initval[0]; /* initvals for jhash_1word */
27 struct ip_set_req_ipportnethash_create {
28 uint32_t hashsize;
29 uint16_t probes;
30 uint16_t resize;
31 ip_set_ip_t from;
32 ip_set_ip_t to;
35 struct ip_set_req_ipportnethash {
36 ip_set_ip_t ip;
37 ip_set_ip_t port;
38 ip_set_ip_t ip1;
39 uint8_t cidr;
42 #endif /* __IP_SET_IPPORTNETHASH_H */