This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / linux / netfilter_ipv4 / ip_set_portmap.h
1 #ifndef __IP_SET_PORTMAP_H
2 #define __IP_SET_PORTMAP_H
3
4 #include <linux/netfilter_ipv4/ip_set.h>
5
6 #define SETTYPE_NAME    "portmap"
7 #define MAX_RANGE       0x0000FFFF
8 #define INVALID_PORT    (MAX_RANGE + 1)
9
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 */
14 };
15
16 struct ip_set_req_portmap_create {
17         ip_set_ip_t from;
18         ip_set_ip_t to;
19 };
20
21 struct ip_set_req_portmap {
22         ip_set_ip_t port;
23 };
24
25 #endif /* __IP_SET_PORTMAP_H */