1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2 #ifndef _XT_CONNMARK_H
3 #define _XT_CONNMARK_H
4
5 #include <linux/types.h>
6
7 /* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com>
8 * by Henrik Nordstrom <hno@marasystems.com>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 */
15
16 enum {
17 XT_CONNMARK_SET = 0,
18 XT_CONNMARK_SAVE,
19 XT_CONNMARK_RESTORE
20 };
21
22 enum {
23 D_SHIFT_LEFT = 0,
24 D_SHIFT_RIGHT,
25 };
26
27 struct xt_connmark_tginfo1 {
28 __u32 ctmark, ctmask, nfmask;
29 __u8 mode;
30 };
31
32 struct xt_connmark_tginfo2 {
33 __u32 ctmark, ctmask, nfmask;
34 __u8 shift_dir, shift_bits, mode;
35 };
36
37 struct xt_connmark_mtinfo1 {
38 __u32 mark, mask;
39 __u8 invert;
40 };
41
42 #endif /*_XT_CONNMARK_H*/