MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / linux / netfilter / xt_policy.h
bloba8132ec076fb80656f845f1344ebde9ffcb4663a
1 #ifndef _XT_POLICY_H
2 #define _XT_POLICY_H
4 #define XT_POLICY_MAX_ELEM 4
6 enum xt_policy_flags
8 XT_POLICY_MATCH_IN = 0x1,
9 XT_POLICY_MATCH_OUT = 0x2,
10 XT_POLICY_MATCH_NONE = 0x4,
11 XT_POLICY_MATCH_STRICT = 0x8,
14 enum xt_policy_modes
16 XT_POLICY_MODE_TRANSPORT,
17 XT_POLICY_MODE_TUNNEL
20 struct xt_policy_spec
22 u_int8_t saddr:1,
23 daddr:1,
24 proto:1,
25 mode:1,
26 spi:1,
27 reqid:1;
30 union xt_policy_addr
32 struct in_addr a4;
33 struct in6_addr a6;
36 struct xt_policy_elem
38 union xt_policy_addr saddr;
39 union xt_policy_addr smask;
40 union xt_policy_addr daddr;
41 union xt_policy_addr dmask;
42 u_int32_t spi;
43 u_int32_t reqid;
44 u_int8_t proto;
45 u_int8_t mode;
47 struct xt_policy_spec match;
48 struct xt_policy_spec invert;
51 struct xt_policy_info
53 struct xt_policy_elem pol[XT_POLICY_MAX_ELEM];
54 u_int16_t flags;
55 u_int16_t len;
58 #endif /* _XT_POLICY_H */