Commit | Line | Data |
---|---|---|
84f3bb9a PM |
1 | #ifndef _XT_CT_H |
2 | #define _XT_CT_H | |
3 | ||
06988b06 JE |
4 | #include <linux/types.h> |
5 | ||
5474f57f PNA |
6 | enum { |
7 | XT_CT_NOTRACK = 1 << 0, | |
8 | XT_CT_NOTRACK_ALIAS = 1 << 1, | |
deedb590 DB |
9 | XT_CT_ZONE_DIR_ORIG = 1 << 2, |
10 | XT_CT_ZONE_DIR_REPL = 1 << 3, | |
5e8018fc | 11 | XT_CT_ZONE_MARK = 1 << 4, |
deedb590 DB |
12 | |
13 | XT_CT_MASK = XT_CT_NOTRACK | XT_CT_NOTRACK_ALIAS | | |
5e8018fc DB |
14 | XT_CT_ZONE_DIR_ORIG | XT_CT_ZONE_DIR_REPL | |
15 | XT_CT_ZONE_MARK, | |
5474f57f | 16 | }; |
84f3bb9a PM |
17 | |
18 | struct xt_ct_target_info { | |
f1c72229 JE |
19 | __u16 flags; |
20 | __u16 zone; | |
21 | __u32 ct_events; | |
22 | __u32 exp_events; | |
23 | char helper[16]; | |
84f3bb9a PM |
24 | |
25 | /* Used internally by the kernel */ | |
26 | struct nf_conn *ct __attribute__((aligned(8))); | |
27 | }; | |
28 | ||
24de58f4 PNA |
29 | struct xt_ct_target_info_v1 { |
30 | __u16 flags; | |
31 | __u16 zone; | |
32 | __u32 ct_events; | |
33 | __u32 exp_events; | |
34 | char helper[16]; | |
35 | char timeout[32]; | |
36 | ||
37 | /* Used internally by the kernel */ | |
38 | struct nf_conn *ct __attribute__((aligned(8))); | |
39 | }; | |
40 | ||
84f3bb9a | 41 | #endif /* _XT_CT_H */ |