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