]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: allow typeof in objref maps
authorFlorian Westphal <fw@strlen.de>
Thu, 29 Feb 2024 10:41:23 +0000 (11:41 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 29 Feb 2024 23:38:33 +0000 (00:38 +0100)
commit25f1e6ccc0590e1081879022809afb83fc45f673
tree7bb524013f7d004584eea1c60d2bd5d31ed5abd6
parentfb98cb91c575880617e5da2cb6f094525516cb78
parser: allow typeof in objref maps

Its currently not possible to declare a map that
stores object references with the "typeof" keyword, e.g.

map m {
type ipv4_addr : limit

will work, but

map m {
typeof ip saddr : limit

will give a syntax error ("unexpected limit").
Followup pach will add support for listing side too.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/parser_bison.y