diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 01:21:32 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 01:30:09 +0200 |
commit | 760bd16776b111c006ba209545abfc5c849702b4 (patch) | |
tree | 0ed306e0dffb8bc062d6454b3cf87ee0bfa66a9e /src/rule.c | |
parent | 35ba5cfa4c092db6c7889756083169f2b259238e (diff) |
src: simplify netlink_get_setelems() and rename it to netlink_list_setelems()
This is called from cache population path, remove netlink_io_error()
call since this is not needed. Rename it for consistency with similar
netlink_list_*() NLM_F_DUMP functions. Get rid of location parameter.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r-- | src/rule.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -84,8 +84,7 @@ static int cache_init_objects(struct netlink_ctx *ctx, enum cmd_ops cmd) return -1; list_for_each_entry(set, &table->sets, list) { - ret = netlink_get_setelems(ctx, &set->handle, - &internal_location, set); + ret = netlink_list_setelems(ctx, &set->handle, set); if (ret < 0) return -1; } |