]> git.ipfire.org Git - thirdparty/nftables.git/commit
json: Accept more than two operands in binary expressions
authorPhil Sutter <phil@nwl.cc>
Wed, 20 Mar 2024 14:54:54 +0000 (15:54 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 12 Apr 2024 12:33:14 +0000 (14:33 +0200)
commit0ac39384fd9e48ff6bcc5605df2cbeb33af64b9e
tree1009847e954207c82d829d1c357712723d0cb789
parent3bccc478d27498f7ecc8a0233176accb1b91f584
json: Accept more than two operands in binary expressions

The most common use case is ORing flags like

| syn | ack | rst

but nft seems to be fine with less intuitive stuff like

| meta mark set ip dscp << 2 << 3

so support all of them.

Signed-off-by: Phil Sutter <phil@nwl.cc>
doc/libnftables-json.adoc
src/json.c
src/parser_json.c
tests/py/inet/tcp.t.json
tests/py/inet/tcp.t.json.output
tests/shell/testcases/nft-f/dumps/0012different_defines_0.json-nft
tests/shell/testcases/sets/dumps/0055tcpflags_0.json-nft