1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _NF_CONNTRACK_ZONES_COMMON_H |
3 | #define _NF_CONNTRACK_ZONES_COMMON_H |
4 | |
5 | #include <uapi/linux/netfilter/nf_conntrack_tuple_common.h> |
6 | |
7 | #define NF_CT_DEFAULT_ZONE_ID 0 |
8 | |
9 | #define NF_CT_ZONE_DIR_ORIG (1 << IP_CT_DIR_ORIGINAL) |
10 | #define NF_CT_ZONE_DIR_REPL (1 << IP_CT_DIR_REPLY) |
11 | |
12 | #define NF_CT_DEFAULT_ZONE_DIR (NF_CT_ZONE_DIR_ORIG | NF_CT_ZONE_DIR_REPL) |
13 | |
14 | #define NF_CT_FLAG_MARK 1 |
15 | |
16 | struct nf_conntrack_zone { |
17 | u16 id; |
18 | u8 flags; |
19 | u8 dir; |
20 | }; |
21 | |
22 | extern const struct nf_conntrack_zone nf_ct_zone_dflt; |
23 | |
24 | #endif /* _NF_CONNTRACK_ZONES_COMMON_H */ |
25 | |