allow coexistance of N build and AC build.
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / include / linux / netfilter_ipv4 / ip_set_macipmap.h
blob0615e9f79a2a8ebc9df904b6bcc8ad6116e91a0b
1 #ifndef __IP_SET_MACIPMAP_H
2 #define __IP_SET_MACIPMAP_H
4 #include <linux/netfilter_ipv4/ip_set.h>
5 #include <linux/netfilter_ipv4/ip_set_bitmaps.h>
7 #define SETTYPE_NAME "macipmap"
9 /* general flags */
10 #define IPSET_MACIP_MATCHUNSET 1
12 /* per ip flags */
13 #define IPSET_MACIP_ISSET 1
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 u_int32_t size; /* size of the ipmap proper */
23 struct ip_set_req_macipmap_create {
24 ip_set_ip_t from;
25 ip_set_ip_t to;
26 u_int32_t flags;
29 struct ip_set_req_macipmap {
30 ip_set_ip_t ip;
31 unsigned char ethernet[ETH_ALEN];
34 struct ip_set_macip {
35 unsigned short match;
36 unsigned char ethernet[ETH_ALEN];
39 #endif /* __IP_SET_MACIPMAP_H */