diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mnl.h | 10 | ||||
-rw-r--r-- | include/netlink.h | 8 |
2 files changed, 6 insertions, 12 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); diff --git a/include/netlink.h b/include/netlink.h index 42c3eb90..4de4a09d 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -57,7 +57,6 @@ struct netlink_ctx { struct nft_cache *cache; }; -extern struct nftnl_chain *alloc_nftnl_chain(const struct handle *h); extern struct nftnl_rule *alloc_nftnl_rule(const struct handle *h); extern struct nftnl_expr *alloc_nft_expr(const char *name); extern struct nftnl_set *alloc_nftnl_set(const struct handle *h); @@ -117,13 +116,6 @@ extern int netlink_del_rule_batch(struct netlink_ctx *ctx, extern int netlink_replace_rule_batch(struct netlink_ctx *ctx, const struct cmd *cmd); -extern int netlink_add_chain_batch(struct netlink_ctx *ctx, - const struct cmd *cmd, uint32_t flags); -extern int netlink_rename_chain_batch(struct netlink_ctx *ctx, - const struct handle *h, - const struct cmd *cmd); -extern int netlink_delete_chain_batch(struct netlink_ctx *ctx, - const struct cmd *cmd); extern int netlink_list_chains(struct netlink_ctx *ctx, const struct handle *h); extern int netlink_flush_chain(struct netlink_ctx *ctx, const struct cmd *cmd); extern struct chain *netlink_delinearize_chain(struct netlink_ctx *ctx, |