]> git.ipfire.org Git - thirdparty/nftables.git/commit
tcpopt: remove KIND keyword
authorFlorian Westphal <fw@strlen.de>
Sun, 21 Nov 2021 22:32:57 +0000 (23:32 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 1 Dec 2021 13:11:39 +0000 (14:11 +0100)
commitd59a09f33eb14c5a53535d4830a158568746babe
tree95e4f05ab4ecd55f0be02be06c79b9f82ccf31cd
parentfa564b6ce7e595a11f27896e47dedc7b5af2e33d
tcpopt: remove KIND keyword

tcp option <foo> kind ... never makes any sense, as "tcp option <foo>"
already tells the kernel to look for the foo <kind>.

"tcp option sack kind 5" matches if the sack option is present; its a
more complicated form of the simpler "tcp option sack exists".

"tcp option sack kind 1" (or any other value than 5) will never match.

So remove this.

Test cases are converted to "exists".

Signed-off-by: Florian Westphal <fw@strlen.de>
doc/payload-expression.txt
src/parser_bison.y
src/scanner.l
tests/py/any/tcpopt.t
tests/py/any/tcpopt.t.json
tests/py/any/tcpopt.t.payload