summaryrefslogtreecommitdiffstats
path: root/libxtables
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2026-01-22 18:06:07 +0100
committerPhil Sutter <phil@nwl.cc>2026-01-27 20:49:44 +0100
commit85a19cead8eb889fb1a01a25f292cf208b2adf50 (patch)
treef24ba691423c9570b26a3c3f91a186435fc93d7a /libxtables
parent78d7a5f8619f3965ec2da13003a876c808c40cfb (diff)
libxtables: Store all requested target types
Repeat the change in commit 1a696c99d278c ("libxtables: store all requested match types") for target registration. An obvious use-case affected as described in that commit is an 'nft list ruleset' process translating different families' extensions in one go. If the same extension is used in multiple families, only the first one is being found. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'libxtables')
-rw-r--r--libxtables/xtables.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index 5fc50a63..af56a75f 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -1345,10 +1345,6 @@ void xtables_register_target(struct xtables_target *me)
if (me->extra_opts != NULL)
xtables_check_options(me->name, me->extra_opts);
- /* ignore not interested target */
- if (me->family != afinfo->family && me->family != AF_UNSPEC)
- return;
-
/* order into linked list of targets pending full registration */
for (pos = &xtables_pending_targets; *pos; pos = &(*pos)->next) {
/* group by name */