summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2025-06-15 11:34:11 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2025-06-23 18:41:05 +0200
commite8c7ba0aac7ce321e61008fe9b4b8f11c3ba7e1d (patch)
tree416f2ee0d8121ac3426714966350c8fd582db87e /src
parentcd20bd43da6b90fb6cf42dc848127befa5cde52d (diff)
parser_bison: only reset by name is supported by now
NFT_MSG_GETSET does not support for handle lookup yet, restrict this to reset by name by now. Add a bogon test reported by Florian Westphal. Fixes: 83e0f4402fb7 ("Implement 'reset {set,map,element}' commands") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/parser_bison.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index ed6a24a1..87b34293 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -1757,11 +1757,11 @@ reset_cmd : COUNTERS list_cmd_spec_any
{
$$ = cmd_alloc(CMD_RESET, CMD_OBJ_ELEMENTS, &$2, &@$, $3);
}
- | SET set_or_id_spec
+ | SET set_spec
{
$$ = cmd_alloc(CMD_RESET, CMD_OBJ_SET, &$2, &@$, NULL);
}
- | MAP set_or_id_spec
+ | MAP set_spec
{
$$ = cmd_alloc(CMD_RESET, CMD_OBJ_MAP, &$2, &@$, NULL);
}