If the ruleset contains a reference to object, listing fails. The existing test for the new reset command displays the following error: # ./run-tests.sh testcases/rule_management/0011reset_0 I: using nft command: ./../../src/nft W: [FAILED] testcases/rule_management/0011reset_0: got 2 loading ruleset resetting specific rule netlink: Error: Unknown set 's' in dynset statement Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- src/cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cache.c b/src/cache.c index 38bc219abc57..95adee7f8ac1 100644 --- a/src/cache.c +++ b/src/cache.c @@ -268,6 +268,7 @@ static unsigned int evaluate_cache_reset(struct cmd *cmd, unsigned int flags, { switch (cmd->obj) { case CMD_OBJ_RULES: + case CMD_OBJ_RULE: if (filter) { if (cmd->handle.table.name) { filter->list.family = cmd->handle.family; -- 2.30.2