]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: allow quoted string in flowtable_expr_member
authorStijn Tintel <stijn@linux-ipv6.be>
Tue, 21 Dec 2021 10:40:25 +0000 (12:40 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Dec 2021 23:22:34 +0000 (00:22 +0100)
commit07af4429241c9832a613cb8620331ac54257d9df
tree64ccca3f77fb82787bdad08791070571dbf24415
parent3eaba1125798c7b8f2e8ad3d1a572de6b84f4e5a
parser: allow quoted string in flowtable_expr_member

Devices with interface names starting with a digit can not be configured
in flowtables. Trying to do so throws the following error:

Error: syntax error, unexpected number, expecting comma or '}'
devices = { eth0, 6in4-wan6 };

This is however a perfectly valid interface name. Solve the issue by
allowing the use of quoted strings.

Suggested-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_bison.y