diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-09-26 16:20:08 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-04 02:13:58 +0200 |
commit | 12c362e2214a04786a68a8effc2e9580833b1586 (patch) | |
tree | 9ed51fa3362a36bfb6dd03c186c6bad1982da39a /include/mnl.h | |
parent | 0562beb6544d3fdb897870a10d9925eab40ac73a (diff) |
mnl: remove alloc_nftnl_table()
The netlink layer sits in between the mnl and the rule layers, remove
it. We can remove alloc_nftnl_table() and consolidate infrastructure in
the src/mnl.c file.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/mnl.h')
-rw-r--r-- | include/mnl.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/mnl.h b/include/mnl.h index 36109c7a..44dd90f9 100644 --- a/include/mnl.h +++ b/include/mnl.h @@ -3,6 +3,7 @@ #include <list.h> #include <netlink.h> +#include <rule.h> #include <libmnl/libmnl.h> struct mnl_socket *netlink_open_sock(void); @@ -42,10 +43,10 @@ int mnl_nft_chain_batch_del(struct nftnl_chain *nlc, struct nftnl_batch *batch, struct nftnl_chain_list *mnl_nft_chain_dump(struct netlink_ctx *ctx, int family); -int mnl_nft_table_batch_add(struct nftnl_table *nlt, struct nftnl_batch *batch, - unsigned int flags, uint32_t seqnum); -int mnl_nft_table_batch_del(struct nftnl_table *nlt, struct nftnl_batch *batch, - unsigned int flags, uint32_t seqnum); +int mnl_nft_table_add(struct netlink_ctx *ctx, const struct cmd *cmd, + unsigned int flags); +int mnl_nft_table_del(struct netlink_ctx *ctx, const struct cmd *cmd); + struct nftnl_table_list *mnl_nft_table_dump(struct netlink_ctx *ctx, int family); |