Linux 6.7-rc7
[linux-modified.git] / include / uapi / linux / netfilter / xt_connmark.h
1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2 /* Copyright (C) 2002,2004 MARA Systems AB <https://www.marasystems.com>
3  * by Henrik Nordstrom <hno@marasystems.com>
4  */
5
6 #ifndef _XT_CONNMARK_H
7 #define _XT_CONNMARK_H
8
9 #include <linux/types.h>
10
11 enum {
12         XT_CONNMARK_SET = 0,
13         XT_CONNMARK_SAVE,
14         XT_CONNMARK_RESTORE
15 };
16
17 enum {
18         D_SHIFT_LEFT = 0,
19         D_SHIFT_RIGHT,
20 };
21
22 struct xt_connmark_tginfo1 {
23         __u32 ctmark, ctmask, nfmask;
24         __u8 mode;
25 };
26
27 struct xt_connmark_tginfo2 {
28         __u32 ctmark, ctmask, nfmask;
29         __u8 shift_dir, shift_bits, mode;
30 };
31
32 struct xt_connmark_mtinfo1 {
33         __u32 mark, mask;
34         __u8 invert;
35 };
36
37 #endif /*_XT_CONNMARK_H*/