From a331eca90d25a1bc519a5a3a53d72a982cedb029 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 17 Jun 2019 14:01:56 +0200 Subject: netlink: remove netlink_list_table() Remove this wrapper, call netlink_list_rules() instead. Signed-off-by: Pablo Neira Ayuso --- src/netlink.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/netlink.c') diff --git a/src/netlink.c b/src/netlink.c index a6d81b4f..24d8f03a 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -333,7 +333,7 @@ static int list_rule_cb(struct nftnl_rule *nlr, void *arg) return 0; } -static int netlink_list_rules(struct netlink_ctx *ctx, const struct handle *h) +int netlink_list_rules(struct netlink_ctx *ctx, const struct handle *h) { struct nftnl_rule_list *rule_cache; @@ -485,11 +485,6 @@ int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h) return 0; } -int netlink_list_table(struct netlink_ctx *ctx, const struct handle *h) -{ - return netlink_list_rules(ctx, h); -} - enum nft_data_types dtype_map_to_kernel(const struct datatype *dtype) { switch (dtype->type) { -- cgit v1.2.3