2 +++ b/include/linux/netfilter_ipv4/ip_set_ipporthash.h
4 +#ifndef __IP_SET_IPPORTHASH_H
5 +#define __IP_SET_IPPORTHASH_H
7 +#include <linux/netfilter_ipv4/ip_set.h>
9 +#define SETTYPE_NAME "ipporthash"
10 +#define MAX_RANGE 0x0000FFFF
11 +#define INVALID_PORT (MAX_RANGE + 1)
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 */
24 +struct ip_set_req_ipporthash_create {
32 +struct ip_set_req_ipporthash {
37 +#endif /* __IP_SET_IPPORTHASH_H */