summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-04-24 01:21:32 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-04-24 01:30:09 +0200
commit760bd16776b111c006ba209545abfc5c849702b4 (patch)
tree0ed306e0dffb8bc062d6454b3cf87ee0bfa66a9e /src/rule.c
parent35ba5cfa4c092db6c7889756083169f2b259238e (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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rule.c b/src/rule.c
index 2ad7f23e..1f69afd1 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -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;
}