diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-09-26 17:57:01 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-04 02:13:58 +0200 |
commit | 1494cc26fe524f25d3984b20938b51ce681cb44d (patch) | |
tree | e877c6c946ad40649d0169e93024e81c34d26bf2 /include/mnl.h | |
parent | 12c362e2214a04786a68a8effc2e9580833b1586 (diff) |
mnl: remove alloc_nftnl_chain()
The netlink layer sits in between the mnl and the rule layers, remove
it. We can remove alloc_nftnl_chain() 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 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/mnl.h b/include/mnl.h index 44dd90f9..96bf4b03 100644 --- a/include/mnl.h +++ b/include/mnl.h @@ -36,10 +36,12 @@ int mnl_nft_rule_batch_replace(struct nftnl_rule *nlr, struct nftnl_batch *batch struct nftnl_rule_list *mnl_nft_rule_dump(struct netlink_ctx *ctx, int family); -int mnl_nft_chain_batch_add(struct nftnl_chain *nlc, struct nftnl_batch *batch, - unsigned int flags, uint32_t seqnum); -int mnl_nft_chain_batch_del(struct nftnl_chain *nlc, struct nftnl_batch *batch, - unsigned int flags, uint32_t seqnum); +int mnl_nft_chain_add(struct netlink_ctx *ctx, const struct cmd *cmd, + unsigned int flags); +int mnl_nft_chain_del(struct netlink_ctx *ctx, const struct cmd *cmd); +int mnl_nft_chain_rename(struct netlink_ctx *ctx, const struct cmd *cmd, + const struct chain *chain); + struct nftnl_chain_list *mnl_nft_chain_dump(struct netlink_ctx *ctx, int family); |