summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-eb.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-03-15 12:25:21 +0100
committerPhil Sutter <phil@nwl.cc>2022-03-15 14:53:52 +0100
commit6c689b639cf8e2aeced8685eca2915892d76ad86 (patch)
treefba72e5c79936c2640e7454c8818a24ec4f0fe56 /iptables/xtables-eb.c
parent0c8e253595bd80e4ddd73230d079e33cd5420b32 (diff)
Simplify static build extension loading
Instead of guarding all calls to init_extensions*(), define stubs if not used. While at it, also add the missing prototypes for arp- and ebtables extension initializers. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-eb.c')
-rw-r--r--iptables/xtables-eb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c
index 1e5b50ba..dcb707f6 100644
--- a/iptables/xtables-eb.c
+++ b/iptables/xtables-eb.c
@@ -668,10 +668,7 @@ int nft_init_eb(struct nft_handle *h, const char *pname)
ebtables_globals.program_version);
exit(1);
}
-
-#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
init_extensionsb();
-#endif
if (nft_init(h, NFPROTO_BRIDGE) < 0)
xtables_error(OTHER_PROBLEM,