]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: compact type/typeof set rules
authorFlorian Westphal <fw@strlen.de>
Tue, 27 Feb 2024 14:53:19 +0000 (15:53 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 29 Feb 2024 23:32:14 +0000 (00:32 +0100)
commitfb98cb91c575880617e5da2cb6f094525516cb78
tree536622e934f0a0d8f1ca3e8035eb335c06b09f81
parent81fc7aee0d523d61077518534036ff10beddb3e9
parser: compact type/typeof set rules

Set/maps keys can be declared either by 'type' or 'typeof' keyword.

Compact this to use a common block for both cases.

The datatype_set call is redundant, remove it:
at this point $3 == $1->key, so this is a no-op.

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