summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Fought <Rich.Fought@watchguard.com>2012-10-08 17:31:42 -0700
committerRich Fought <Rich.Fought@watchguard.com>2012-10-08 17:31:42 -0700
commit4a702e6b728f0ecfe7994c650403b6e7c8ffc88f (patch)
tree6f11d4c030b7622f233a065565334c002d32ba30 /include
parentf111efd894560a3f5d4393ff9aa59d1d87b78f6e (diff)
downloadlibnl-4a702e6b728f0ecfe7994c650403b6e7c8ffc88f.tar.gz
Starting CLI work
Diffstat (limited to 'include')
-rw-r--r--include/netlink/cli/exp.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/netlink/cli/exp.h b/include/netlink/cli/exp.h
new file mode 100644
index 0000000..94609d7
--- /dev/null
+++ b/include/netlink/cli/exp.h
@@ -0,0 +1,30 @@
+/*
+ * netlink/cli/exp.h CLI Expectation Helper
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation version 2.1
+ * of the License.
+ *
+ * Copyright (c) 2012 Rich Fought <Rich.Fought@watchguard.com>
+ */
+
+#ifndef __NETLINK_CLI_EXP_H_
+#define __NETLINK_CLI_EXP_H_
+
+#include <netlink/netfilter/exp.h>
+#include <linux/netfilter/nf_conntrack_common.h>
+
+extern struct nfnl_exp *nl_cli_exp_alloc(void);
+extern struct nl_cache *nl_cli_exp_alloc_cache(struct nl_sock *);
+
+extern void nl_cli_exp_parse_family(struct nfnl_exp *, char *);
+extern void nl_cli_exp_parse_timeout(struct nfnl_exp *, char *);
+extern void nl_cli_exp_parse_id(struct nfnl_exp *, char *);
+extern void nl_cli_exp_parse_src(struct nfnl_exp *, int, char *);
+extern void nl_cli_exp_parse_dst(struct nfnl_exp *, int, char *);
+extern void nl_cli_exp_parse_l4protonum(struct nfnl_exp *, int, char *);
+extern void nl_cli_exp_parse_src_port(struct nfnl_exp *, int, char *);
+extern void nl_cli_exp_parse_dst_port(struct nfnl_exp *, int, char *);
+
+#endif