]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
scanner: Move 'maps' keyword into list cmd scope
authorPhil Sutter <phil@nwl.cc>
Thu, 29 Jul 2021 13:00:20 +0000 (15:00 +0200)
committerPhil Sutter <phil@nwl.cc>
Sun, 20 Feb 2022 00:46:58 +0000 (01:46 +0100)
This was missed when introducing SCANSTATE_CMD_LIST, no other command
operates on "maps".

Fixes: 6a24ffb04642e ("scanner: add list cmd parser scope")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/scanner.l

index 7dcc45c2fd505516f71e988addf70969aa77f6f9..ce78fcd6fa995e2a3a01250379df25d306705d7e 100644 (file)
@@ -286,7 +286,6 @@ addrstring  ({macaddr}|{ip4addr}|{ip6addr})
 "set"                  { return SET; }
 "element"              { return ELEMENT; }
 "map"                  { return MAP; }
-"maps"                 { return MAPS; }
 "flowtable"            { return FLOWTABLE; }
 "handle"               { return HANDLE; }
 "ruleset"              { return RULESET; }
@@ -353,6 +352,7 @@ addrstring  ({macaddr}|{ip4addr}|{ip6addr})
        "meters"                { return METERS; }
        "flowtables"            { return FLOWTABLES; }
        "limits"                { return LIMITS; }
+       "maps"                  { return MAPS; }
        "secmarks"              { return SECMARKS; }
        "synproxys"             { return SYNPROXYS; }
        "hooks"                 { return HOOKS; }