]> git.ipfire.org Git - thirdparty/nftables.git/commit
tcpopt: allow to check for presence of any tcp option
authorFlorian Westphal <fw@strlen.de>
Wed, 21 Oct 2020 21:54:17 +0000 (23:54 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 9 Nov 2020 11:19:31 +0000 (12:19 +0100)
commit24d8da3083422da8336eeed2ee23b2ccf598ba5a
treeaad5a98e023ca49a5db923ec8ad8c8899482bf57
parent2e1f821d713aa44717b38901ee80cac8e2aa0335
tcpopt: allow to check for presence of any tcp option

nft currently doesn't allow to check for presence of arbitrary tcp options.
Only known options where nft provides a template can be tested for.

This allows to test for presence of raw protocol values as well.

Example:

tcp option 42 exists

Signed-off-by: Florian Westphal <fw@strlen.de>
include/expression.h
src/exthdr.c
src/ipopt.c
src/netlink_linearize.c
src/parser_bison.y
src/tcpopt.c
tests/py/any/tcpopt.t
tests/py/any/tcpopt.t.payload