summaryrefslogtreecommitdiffstats
path: root/include/helper.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-11-24 14:17:01 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-11-24 14:32:42 +0100
commitabb9984a37f7836f806d97b61efc1aea58270f10 (patch)
treec2d2cc2a3079117cab0c284df114208cf36126d3 /include/helper.h
parent5a51b045b369e3f8aa83cd32c14149158bd86546 (diff)
helper: remove copy and paste from uapi kernel header
Copy and paste of headers is not good, include kernel header that provide the necessary definitions. Cache a copy of nf_conntrack_common.h. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/helper.h')
-rw-r--r--include/helper.h25
1 files changed, 1 insertions, 24 deletions
diff --git a/include/helper.h b/include/helper.h
index f412e55..3c0c5e0 100644
--- a/include/helper.h
+++ b/include/helper.h
@@ -76,30 +76,7 @@ enum ip_conntrack_dir {
IP_CT_DIR_MAX
};
-/* Connection state tracking for netfilter. This is separated from,
- but required by, the NAT layer; it can also be used by an iptables
- extension. */
-enum ip_conntrack_info {
- /* Part of an established connection (either direction). */
- IP_CT_ESTABLISHED,
-
- /* Like NEW, but related to an existing connection, or ICMP error
- (in either direction). */
- IP_CT_RELATED,
-
- /* Started a new connection to track (only
- IP_CT_DIR_ORIGINAL); may be a retransmission. */
- IP_CT_NEW,
-
- /* >= this indicates reply direction */
- IP_CT_IS_REPLY,
-
- IP_CT_ESTABLISHED_REPLY = IP_CT_ESTABLISHED + IP_CT_IS_REPLY,
- IP_CT_RELATED_REPLY = IP_CT_RELATED + IP_CT_IS_REPLY,
- IP_CT_NEW_REPLY = IP_CT_NEW + IP_CT_IS_REPLY,
- /* Number of distinct IP_CT types (no NEW in reply dirn). */
- IP_CT_NUMBER = IP_CT_IS_REPLY * 2 - 1
-};
+#include <linux/netfilter/nf_conntrack_common.h>
#define CTINFO2DIR(ctinfo) ((ctinfo) >= IP_CT_IS_REPLY ? IP_CT_DIR_REPLY : IP_CT_DIR_ORIGINAL)