summaryrefslogtreecommitdiff
path: root/include/conntrack.h
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2007-05-06 17:36:13 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2007-05-06 17:36:13 +0000
commit37ef0a638d19ca5145f6d4868e42b7aa2c735d46 (patch)
tree15db83ddcc3a69847f092333174ebeb7f398c602 /include/conntrack.h
parent548e277890c2c06d9a1aa4a2536eb1601a918bc5 (diff)
downloadconntrack-tools-37ef0a638d19ca5145f6d4868e42b7aa2c735d46.tar.gz
conntrack-tools-37ef0a638d19ca5145f6d4868e42b7aa2c735d46.zip
- add warning note to ctnl_test.c: old API is deprecated
- split expect_api_test.c into small example files expect_*.c - introduce alias tags for original tuple attributes - introduce nfexp_sizeof and nfexp_maxsize - build expectation attributes iif they are set - fix l3num setting in expect/build.c
Diffstat (limited to 'include/conntrack.h')
-rw-r--r--include/conntrack.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/include/conntrack.h b/include/conntrack.h
index fb3b9b6..50aec19 100644
--- a/include/conntrack.h
+++ b/include/conntrack.h
@@ -1,10 +1,6 @@
#ifndef _CONNTRACK_H
#define _CONNTRACK_H
-#ifdef HAVE_CONFIG_H
-#include "../config.h"
-#endif
-
#include "linux_list.h"
#include <getopt.h>
#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
@@ -122,9 +118,18 @@ enum options {
CT_OPT_FAMILY_BIT = 16,
CT_OPT_FAMILY = (1 << CT_OPT_FAMILY_BIT),
- CT_OPT_MAX_BIT = CT_OPT_FAMILY_BIT
+ CT_OPT_SRC_NAT_BIT = 17,
+ CT_OPT_SRC_NAT = (1 << CT_OPT_SRC_NAT_BIT),
+
+ CT_OPT_DST_NAT_BIT = 18,
+ CT_OPT_DST_NAT = (1 << CT_OPT_DST_NAT_BIT),
+
+ CT_OPT_XML_BIT = 19,
+ CT_OPT_XML = (1 << CT_OPT_XML_BIT),
+
+ CT_OPT_MAX = CT_OPT_XML_BIT
};
-#define NUMBER_OF_OPT CT_OPT_MAX_BIT+1
+#define NUMBER_OF_OPT CT_OPT_MAX+1
struct ctproto_handler {
struct list_head head;
@@ -136,17 +141,14 @@ struct ctproto_handler {
enum ctattr_protoinfo protoinfo_attr;
int (*parse_opts)(char c, char *argv[],
- struct nfct_tuple *orig,
- struct nfct_tuple *reply,
- struct nfct_tuple *exptuple,
- struct nfct_tuple *mask,
- union nfct_protoinfo *proto,
+ struct nf_conntrack *ct,
+ struct nf_conntrack *exptuple,
+ struct nf_conntrack *mask,
unsigned int *flags);
int (*final_check)(unsigned int flags,
unsigned int command,
- struct nfct_tuple *orig,
- struct nfct_tuple *reply);
+ struct nf_conntrack *ct);
void (*help)();