1
2 #ifndef _XT_ADDRTYPE_H
3 #define _XT_ADDRTYPE_H
4
5 #include <linux/types.h>
6
7 enum {
8 XT_ADDRTYPE_INVERT_SOURCE = 0x0001,
9 XT_ADDRTYPE_INVERT_DEST = 0x0002,
10 XT_ADDRTYPE_LIMIT_IFACE_IN = 0x0004,
11 XT_ADDRTYPE_LIMIT_IFACE_OUT = 0x0008,
12 };
13
14
15
16 enum {
17 XT_ADDRTYPE_UNSPEC = 1 << 0,
18 XT_ADDRTYPE_UNICAST = 1 << 1,
19 XT_ADDRTYPE_LOCAL = 1 << 2,
20 XT_ADDRTYPE_BROADCAST = 1 << 3,
21 XT_ADDRTYPE_ANYCAST = 1 << 4,
22 XT_ADDRTYPE_MULTICAST = 1 << 5,
23 XT_ADDRTYPE_BLACKHOLE = 1 << 6,
24 XT_ADDRTYPE_UNREACHABLE = 1 << 7,
25 XT_ADDRTYPE_PROHIBIT = 1 << 8,
26 XT_ADDRTYPE_THROW = 1 << 9,
27 XT_ADDRTYPE_NAT = 1 << 10,
28 XT_ADDRTYPE_XRESOLVE = 1 << 11,
29 };
30
31 struct xt_addrtype_info_v1 {
32 __u16 source;
33 __u16 dest;
34 __u32 flags;
35 };
36
37
38 struct xt_addrtype_info {
39 __u16 source;
40 __u16 dest;
41 __u32 invert_source;
42 __u32 invert_dest;
43 };
44
45 #endif