]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser_bison: Fix for broken compatibility with older dumps
authorPhil Sutter <phil@nwl.cc>
Thu, 19 Oct 2023 16:40:04 +0000 (18:40 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 19 Oct 2023 23:37:49 +0000 (01:37 +0200)
commit22fab8681a50014174cdd02ace90f74b9e9eefe9
treeb48d12f9c2a1d0c160232f25c782a685c52265d8
parent49151cd0709acbfb7c6c7f35c44fc12060b695d1
parser_bison: Fix for broken compatibility with older dumps

Commit e6d1d0d611958 ("src: add set element multi-statement
support") changed the order of expressions and other state attached to set
elements are expected in input. This broke parsing of ruleset dumps
created by nft commands prior to that commit.

Restore compatibility by also accepting the old ordering.

Fixes: e6d1d0d611958 ("src: add set element multi-statement support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/parser_bison.y
tests/shell/testcases/sets/elem_opts_compat_0 [new file with mode: 0755]