4 #include <linux/types.h>
6 #define XT_POLICY_MAX_ELEM 4
9 XT_POLICY_MATCH_IN
= 0x1,
10 XT_POLICY_MATCH_OUT
= 0x2,
11 XT_POLICY_MATCH_NONE
= 0x4,
12 XT_POLICY_MATCH_STRICT
= 0x8,
15 enum xt_policy_modes
{
16 XT_POLICY_MODE_TRANSPORT
,
20 struct xt_policy_spec
{
30 union xt_policy_addr
{
36 struct xt_policy_elem
{
40 union nf_inet_addr saddr
;
41 union nf_inet_addr smask
;
42 union nf_inet_addr daddr
;
43 union nf_inet_addr dmask
;
47 union xt_policy_addr saddr
;
48 union xt_policy_addr smask
;
49 union xt_policy_addr daddr
;
50 union xt_policy_addr dmask
;
59 struct xt_policy_spec match
;
60 struct xt_policy_spec invert
;
63 struct xt_policy_info
{
64 struct xt_policy_elem pol
[XT_POLICY_MAX_ELEM
];
69 #endif /* _XT_POLICY_H */