diff options
author | Etienne Champetier <champetier.etienne@gmail.com> | 2022-03-13 20:09:12 -0400 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-03-15 14:53:52 +0100 |
commit | 0836524f093c0fd9c39604a46a949e43d9b47ef2 (patch) | |
tree | f9590a695c044e49fd29359509c68862b4b50749 /iptables/xtables-restore.c | |
parent | 6c689b639cf8e2aeced8685eca2915892d76ad86 (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.c | 5 |
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); |