summaryrefslogtreecommitdiffstats
path: root/include/mnl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mnl.h')
-rw-r--r--include/mnl.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/mnl.h b/include/mnl.h
new file mode 100644
index 0000000..cd146bd
--- /dev/null
+++ b/include/mnl.h
@@ -0,0 +1,24 @@
+#ifndef _MNL_H_
+#define _MNL_H_
+
+#include <libmnl/libmnl.h>
+#include <libnftnl/common.h>
+#include <libnftnl/ruleset.h>
+#include <libnftnl/table.h>
+#include <libnftnl/chain.h>
+#include <libnftnl/set.h>
+#include <libnftnl/rule.h>
+
+#include "config.h"
+
+struct nft_rule_list *mnl_rule_dump(struct mnl_socket *nf_sock, int family);
+struct nft_chain_list *mnl_chain_dump(struct mnl_socket *nf_sock, int family);
+struct nft_table_list *mnl_table_dump(struct mnl_socket *nf_sock, int family);
+struct nft_set_list *mnl_set_dump(struct mnl_socket *nf_sock, int family, const char *table);
+int mnl_setelem_get(struct mnl_socket *nf_sock, struct nft_set *nls);
+struct nft_ruleset *mnl_ruleset_dump(struct mnl_socket *nf_sock);
+int nfts_socket_open(struct nft_sync_inst *nfts_inst);
+void nfts_socket_close(struct nft_sync_inst *nfts_inst);
+const char *netlink_dump_ruleset(struct mnl_socket *s);
+
+#endif /* _MNL_H_ */