summaryrefslogtreecommitdiffstats
path: root/include/nfct.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-05-10 10:15:09 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-05-26 15:29:19 +0200
commitd2e942c76f87ea061d5e8643007f1d4c3ed39694 (patch)
tree0c607e76d0f6e025a2c4de9580eb927628676c88 /include/nfct.h
parent867b5b6496a3296078146ba3d06616eda3b0717e (diff)
src: integrate nfct into the conntrack-tools tree
I'll need for the upcoming cthelper infrastructure. Moreover, we avoid more fragmentation in the netfilter user-space utilities. And the plan is that `nfct' will replace `conntrack' at some point. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/nfct.h')
-rw-r--r--include/nfct.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/nfct.h b/include/nfct.h
new file mode 100644
index 0000000..d6271cf
--- /dev/null
+++ b/include/nfct.h
@@ -0,0 +1,29 @@
+#ifndef _NFCT_H_
+#define _NFCT_H_
+
+enum {
+ NFCT_SUBSYS_NONE = 0,
+ NFCT_SUBSYS_TIMEOUT,
+ NFCT_SUBSYS_VERSION,
+ NFCT_SUBSYS_HELP,
+};
+
+enum {
+ NFCT_CMD_NONE = 0,
+ NFCT_CMD_LIST,
+ NFCT_CMD_ADD,
+ NFCT_CMD_DELETE,
+ NFCT_CMD_GET,
+ NFCT_CMD_FLUSH,
+};
+
+void nfct_perror(const char *msg);
+
+int nfct_cmd_timeout_parse_params(int argc, char *argv[]);
+int nfct_cmd_timeout_list(int argc, char *argv[]);
+int nfct_cmd_timeout_add(int argc, char *argv[]);
+int nfct_cmd_timeout_delete(int argc, char *argv[]);
+int nfct_cmd_timeout_get(int argc, char *argv[]);
+int nfct_cmd_timeout_flush(int argc, char *argv[]);
+
+#endif