summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-restore.c
diff options
context:
space:
mode:
authorEtienne Champetier <champetier.etienne@gmail.com>2022-03-13 20:09:12 -0400
committerPhil Sutter <phil@nwl.cc>2022-03-15 14:53:52 +0100
commit0836524f093c0fd9c39604a46a949e43d9b47ef2 (patch)
treef9590a695c044e49fd29359509c68862b4b50749 /iptables/xtables-restore.c
parent6c689b639cf8e2aeced8685eca2915892d76ad86 (diff)
xtables: Call init_extensions{,a,b}() for static builds
Add calls to arp- and ebtables-specific extension loaders where missing. Also consistently call init_extensions() for them, as some extensions (ebtables 'limit' and arptables 'CLASSIFY' and 'MARK') live in libxt_* files. Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com> Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r--iptables/xtables-restore.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index c6a5ffed..0250ed7d 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -368,7 +368,12 @@ xtables_restore_main(int family, const char *progname, int argc, char *argv[])
init_extensions6();
break;
case NFPROTO_ARP:
+ init_extensions();
+ init_extensionsa();
+ break;
case NFPROTO_BRIDGE:
+ init_extensions();
+ init_extensionsb();
break;
default:
fprintf(stderr, "Unknown family %d\n", family);