]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: use symbolic expressions for parsing keywords as protocol values
authorPatrick McHardy <kaber@trash.net>
Thu, 16 Jan 2014 16:54:18 +0000 (16:54 +0000)
committerPatrick McHardy <kaber@trash.net>
Thu, 16 Jan 2014 17:23:34 +0000 (17:23 +0000)
commit0dbced3615ffdbb212ba4f791475a7c65a525309
treeb5930a5f018f750ef20a003af40d05e2dc80981e
parent3b457d49854503807fa019d9c44a9daf6c79dba0
parser: use symbolic expressions for parsing keywords as protocol values

For "meta protocol" and the "meta nfproto" expressions, we need to be
able to parse "ip", "ip6", "vlan" and "arp" as protocol values.

Since the interpretation depends on the LHS of the relaltional expression,
we need to use symbolic expressions instead of constants to defer parsing
to the evaluation phase.

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/parser.y