]> git.ipfire.org Git - thirdparty/nftables.git/commit
datatype: use DTYPE_F_PREFIX only for IP address datatype
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 21 Mar 2024 11:40:53 +0000 (12:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 21 Mar 2024 12:28:18 +0000 (13:28 +0100)
commita2a7fbdfdd7f8dc5baa4cc8a23753b96bbc8a433
tree37ce9791abe26a31033a35415911383f2123c8b5
parentc0a5b8c6a6433ec1d4e41646dc42ccb8444c96be
datatype: use DTYPE_F_PREFIX only for IP address datatype

DTYPE_F_PREFIX flag provides a hint to the netlink delinearize path to
use prefix notation.

It seems use of prefix notation in meta mark causes confusion, users
expect to see prefix in the listing only in IP address datatypes.

Untoggle this flag so (more lengthy) binop output such as:

  meta mark & 0xffffff00 == 0xffffff00

is used instead.

Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1739
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/datatype.c
src/meta.c
src/rt.c
tests/py/any/meta.t
tests/py/any/meta.t.json