1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _NF_CONNTRACK_TUPLE_COMMON_H
3 #define _NF_CONNTRACK_TUPLE_COMMON_H
5 #include <linux/types.h>
6 #include <linux/netfilter.h>
7 #include <linux/netfilter/nf_conntrack_common.h> /* IP_CT_IS_REPLY */
9 enum ip_conntrack_dir {
15 /* The protocol-specific manipulable parts of the tuple: always in
18 union nf_conntrack_man_proto {
19 /* Add other protocols here. */
38 __be16 key; /* GRE key is 32bit, PPtP only uses 16bit */
42 #define CTINFO2DIR(ctinfo) ((ctinfo) >= IP_CT_IS_REPLY ? IP_CT_DIR_REPLY : IP_CT_DIR_ORIGINAL)
44 #endif /* _NF_CONNTRACK_TUPLE_COMMON_H */