]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser_bison: turn redundant ip option type field match into boolean
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 31 Jan 2025 10:14:22 +0000 (11:14 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 17 Jun 2025 09:26:13 +0000 (11:26 +0200)
commit419ef73e2c01f1f5530d0f023009028b602316c8
tree9a6a24f16c7b1ef3c9d00c3963e7b505532ac43d
parent2c5f1a1d7b7bc5a89f0b87291f9bd8942ec3a4d5
parser_bison: turn redundant ip option type field match into boolean

commit f9a48ce2f9c252bf74d98d10412b1f72585a45ec upstream.

The ip option expression allows for non-sense matching like:

ip option lsrr type 1

because 'lsrr' already provides the type field, this never results in a
matching.

Turn this expression into:

ip option lsrr exists

And update documentation to hide this redundant type field.

Fixes: 226a0e072d5c ("exthdr: add support for matching IPv4 options")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/payload-expression.txt
src/parser_bison.y