diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-17 14:01:56 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-17 19:54:57 +0200 |
commit | a331eca90d25a1bc519a5a3a53d72a982cedb029 (patch) | |
tree | 8e8c498bd0dd19fde86f106070ee45add73b9641 /src | |
parent | fb2c7e161823f2b3afaacf2bf975e81ec9d97411 (diff) |
netlink: remove netlink_list_table()
Remove this wrapper, call netlink_list_rules() instead.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/netlink.c | 7 | ||||
-rw-r--r-- | src/rule.c | 2 |
2 files changed, 2 insertions, 7 deletions
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) { @@ -191,7 +191,7 @@ static int cache_init_objects(struct netlink_ctx *ctx, enum cmd_ops cmd) if (cmd != CMD_LIST) continue; - ret = netlink_list_table(ctx, &table->handle); + ret = netlink_list_rules(ctx, &table->handle); list_for_each_entry_safe(rule, nrule, &ctx->list, list) { chain = chain_lookup(table, &rule->handle); list_move_tail(&rule->list, &chain->rules); |