This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / linux / netfilter_ipv4 / ip_set_macipmap.h
1 #ifndef __IP_SET_MACIPMAP_H
2 #define __IP_SET_MACIPMAP_H
3
4 #include <linux/netfilter_ipv4/ip_set.h>
5
6 #define SETTYPE_NAME "macipmap"
7 #define MAX_RANGE 0x0000FFFF
8
9 /* general flags */
10 #define IPSET_MACIP_MATCHUNSET  1
11
12 /* per ip flags */
13 #define IPSET_MACIP_ISSET       1
14
15 struct ip_set_macipmap {
16         void *members;                  /* the macipmap proper */
17         ip_set_ip_t first_ip;           /* host byte order, included in range */
18         ip_set_ip_t last_ip;            /* host byte order, included in range */
19         u_int32_t flags;
20 };
21
22 struct ip_set_req_macipmap_create {
23         ip_set_ip_t from;
24         ip_set_ip_t to;
25         u_int32_t flags;
26 };
27
28 struct ip_set_req_macipmap {
29         ip_set_ip_t ip;
30         unsigned char ethernet[ETH_ALEN];
31 };
32
33 struct ip_set_macip {
34         unsigned short flags;
35         unsigned char ethernet[ETH_ALEN];
36 };
37
38 #endif  /* __IP_SET_MACIPMAP_H */