All of lore.kernel.org
 help / color / mirror / Atom feed
* RFD - Exposing netfilter types?
@ 2025-12-12 20:13 Ian Pilcher
  2025-12-15 21:43 ` Florian Westphal
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Pilcher @ 2025-12-12 20:13 UTC (permalink / raw)
  To: netfilter-devel

Recently, I asked what I thought would be a simple question.  How should
an application go about determining the type of objects stored in an
nftables set.

   https://marc.info/?l=netfilter&m=176546062431223&w=2

As seen in the response (thanks Florian!), doing this for all possible
types, including concatenations, is actually pretty complicated.

Presumably, this is why the NFTA_SET_KEY_TYPE values that correspond to
simple types aren't in any public header.  Instead, those values, along
with all of the logic associated with complex types seem to exist solely
within the nftables user-space utility (nft).

Of course, this presents a problem for any other application that wants
to work with these types/values.  Today, any such program needs to copy
the values and/or logic that it needs from the nft sources.

Is there any reason that the type-related stuff that's currently in nft
shouldn't be broken out into a separate library that other applications
could also use?

(Or have I missed something glaringly obvious.  That's always a
possibility.)

-- 
========================================================================
If your user interface is intuitive in retrospect ... it isn't intuitive
========================================================================


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

end of thread, other threads:[~2025-12-16 16:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-12 20:13 RFD - Exposing netfilter types? Ian Pilcher
2025-12-15 21:43 ` Florian Westphal
2025-12-16 16:05   ` Ian Pilcher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.