path: root/include/netlink.h
diff options
authorPablo Neira Ayuso <>2018-09-26 17:57:01 +0200
committerPablo Neira Ayuso <>2018-10-04 02:13:58 +0200
commit1494cc26fe524f25d3984b20938b51ce681cb44d (patch)
treee877c6c946ad40649d0169e93024e81c34d26bf2 /include/netlink.h
parent12c362e2214a04786a68a8effc2e9580833b1586 (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 <>
Diffstat (limited to 'include/netlink.h')
1 files changed, 0 insertions, 8 deletions
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,