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 /include | |
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 'include')
-rw-r--r-- | include/netlink.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/netlink.h b/include/netlink.h index 92bae138..d153e2be 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -156,8 +156,8 @@ extern int netlink_add_setelems_batch(struct netlink_ctx *ctx, const struct hand const struct expr *expr, uint32_t flags); extern int netlink_delete_setelems_batch(struct netlink_ctx *ctx, const struct cmd *cmd); -extern int netlink_get_setelems(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc, struct set *set); +extern int netlink_list_setelems(struct netlink_ctx *ctx, + const struct handle *h, struct set *set); extern int netlink_get_setelem(struct netlink_ctx *ctx, const struct handle *h, const struct location *loc, struct table *table, struct set *set, struct expr *init); |