netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iptables PATCH 0/2] Improve error messages for unsupported extensions
@ 2022-02-11 17:12 Phil Sutter
  2022-02-11 17:12 ` [iptables PATCH 1/2] libxtables: Register only the highest revision extension Phil Sutter
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Phil Sutter @ 2022-02-11 17:12 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

Failure to load an extension leads to iptables cmdline parser
complaining about any extension options instead of the extension itself.
This is at least misleading.

This series eliminates the odd error message and instead adds a warning
if a requested extension is not available at all in kernel.

Things are a bit complicated due to the fact that newer kernels not
necessarily support revision 0 of all extensions. So change iptables
first to only register revision 0 if no higher one was accepted earlier.
This allows for a "not even revision 0 is supported" logic.

Phil Sutter (2):
  libxtables: Register only the highest revision extension
  Improve error messages for unsupported extensions

 iptables/nft.c       | 12 +++++++++---
 libxtables/xtables.c | 17 ++++++++++++++---
 2 files changed, 23 insertions(+), 6 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-03-02 20:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-11 17:12 [iptables PATCH 0/2] Improve error messages for unsupported extensions Phil Sutter
2022-02-11 17:12 ` [iptables PATCH 1/2] libxtables: Register only the highest revision extension Phil Sutter
2022-02-11 17:12 ` [iptables PATCH 2/2] Improve error messages for unsupported extensions Phil Sutter
2022-03-02 14:52 ` [iptables PATCH 0/2] " Phil Sutter
2022-03-02 15:06   ` Florian Westphal
2022-03-02 20:17     ` Phil Sutter

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).