From 1494cc26fe524f25d3984b20938b51ce681cb44d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 26 Sep 2018 17:57:01 +0200 Subject: 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 --- include/netlink.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'include/netlink.h') 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, -- cgit v1.2.3