1 #ifndef __IP_SET_PORTMAP_H
2 #define __IP_SET_PORTMAP_H
4 #include <linux/netfilter_ipv4/ip_set.h>
6 #define SETTYPE_NAME "portmap"
7 #define MAX_RANGE 0x0000FFFF
8 #define INVALID_PORT (MAX_RANGE + 1)
10 struct ip_set_portmap {
11 void *members; /* the portmap proper */
12 ip_set_ip_t first_port; /* host byte order, included in range */
13 ip_set_ip_t last_port; /* host byte order, included in range */
16 struct ip_set_req_portmap_create {
21 struct ip_set_req_portmap {
25 #endif /* __IP_SET_PORTMAP_H */