[8.09] kernel: refresh patches
[openwrt/svn-archive/archive.git] / target / linux / generic-2.4 / patches / 622-netfilter_ipset_porthash.patch
1 --- /dev/null
2 +++ b/include/linux/netfilter_ipv4/ip_set_ipporthash.h
3 @@ -0,0 +1,34 @@
4 +#ifndef __IP_SET_IPPORTHASH_H
5 +#define __IP_SET_IPPORTHASH_H
6 +
7 +#include <linux/netfilter_ipv4/ip_set.h>
8 +
9 +#define SETTYPE_NAME "ipporthash"
10 +#define MAX_RANGE 0x0000FFFF
11 +#define INVALID_PORT (MAX_RANGE + 1)
12 +
13 +struct ip_set_ipporthash {
14 + ip_set_ip_t *members; /* the ipporthash proper */
15 + uint32_t elements; /* number of elements */
16 + uint32_t hashsize; /* hash size */
17 + uint16_t probes; /* max number of probes */
18 + uint16_t resize; /* resize factor in percent */
19 + ip_set_ip_t first_ip; /* host byte order, included in range */
20 + ip_set_ip_t last_ip; /* host byte order, included in range */
21 + void *initval[0]; /* initvals for jhash_1word */
22 +};
23 +
24 +struct ip_set_req_ipporthash_create {
25 + uint32_t hashsize;
26 + uint16_t probes;
27 + uint16_t resize;
28 + ip_set_ip_t from;
29 + ip_set_ip_t to;
30 +};
31 +
32 +struct ip_set_req_ipporthash {
33 + ip_set_ip_t ip;
34 + ip_set_ip_t port;
35 +};
36 +
37 +#endif /* __IP_SET_IPPORTHASH_H */