]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink_delinearize: restore binop syntax when listing ruleset for flags
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 18 Mar 2024 12:10:55 +0000 (13:10 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 20 Mar 2024 17:50:03 +0000 (18:50 +0100)
commitb11b6c68e61ea294eb4c313705ccfe3e7b0eda87
treed84b4a22c6648a2bf7d2774801db85bd56c3b345
parentea011231c06cbe828cf6056bc9c3d116e1f528d5
netlink_delinearize: restore binop syntax when listing ruleset for flags

c3d57114f119 ("parser_bison: add shortcut syntax for matching flags
without binary operations") provides a similar syntax to iptables using
a prefix representation for flag matching.

Restore original representation using binop when listing the ruleset.
The parser still accepts the prefix notation for backward compatibility.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink_delinearize.c
tests/py/inet/tcp.t
tests/py/inet/tcp.t.json
tests/py/inet/tcp.t.json.output
tests/py/inet/tcp.t.payload
tests/shell/testcases/nft-f/dumps/sample-ruleset.nft
tests/shell/testcases/packetpath/tcp_options