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"
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
{
35 struct ip_set_req_ipportnethash
{
42 #endif /* __IP_SET_IPPORTNETHASH_H */