diff options
author | Eric Leblond <eric@regit.org> | 2013-05-31 10:50:32 +0200 |
---|---|---|
committer | Eric Leblond <eric@regit.org> | 2013-06-08 12:06:22 +0200 |
commit | 7c7d313751d34e0e83be82d7b0e74b5bdf2364d1 (patch) | |
tree | 92582a6fc240ea8d4f2658f5d412fcdd6eb63c4b /src | |
parent | 1d7d85d596ffa827ce8395ebcf16bbd440033620 (diff) |
rule: list elements in set in any case
"nft list table" command was not displaying the elements of named
set. This was thus not possible to restore a ruleset by using the
listing output. This patch modifies the code to display the elements
of set in all cases.
Diffstat (limited to 'src')
-rw-r--r-- | src/rule.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -466,8 +466,7 @@ static int do_list_sets(struct netlink_ctx *ctx, const struct location *loc, return -1; list_for_each_entry_safe(set, nset, &ctx->list, list) { - if (set->flags & SET_F_ANONYMOUS && - netlink_get_setelems(ctx, &set->handle, loc, set) < 0) + if (netlink_get_setelems(ctx, &set->handle, loc, set) < 0) return -1; list_move_tail(&set->list, &table->sets); } |