netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* let nftables indicate incomplete dissections
@ 2024-06-12  7:50 Florian Westphal
  2024-06-12 13:02 ` Phil Sutter
  2024-06-18  8:11 ` Pablo Neira Ayuso
  0 siblings, 2 replies; 6+ messages in thread
From: Florian Westphal @ 2024-06-12  7:50 UTC (permalink / raw)
  To: netfilter-devel

"nft list ruleset" currently omits things it does not understand
and that it cannot represent in any other way.

This includes:
1. expression is unknown
2. expression is known (e.g. "cmp"), but attr contains unexpected value
3. expression is known but there is an unknown netlink attr contained in
the dump

If backend (libnftl) could mark expressions as incomplete (from .parse
callbacks?), it would be then possible for the frontend (nft) to document
this, e.g. by adding something like "# unknown attributes", or similar.

This is mainly needed for container environments, where host environment
might be using a lot older version than what is used by a specific
container image.

Related problem: entity that is using the raw netlink interface, it
that case libnftnl might be able to parse everything but nft could
lack the ability to properly print this.

If noone has any objections, I would place this on my todo list and
start with adding to libnftnl the needed "expression is incomplete"
marking by extending the .parse callbacks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-24 21:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-12  7:50 let nftables indicate incomplete dissections Florian Westphal
2024-06-12 13:02 ` Phil Sutter
2024-06-18  8:11 ` Pablo Neira Ayuso
2024-06-18  9:31   ` Florian Westphal
2024-06-24 18:14     ` Pablo Neira Ayuso
2024-06-24 21:24       ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).