Skip to contentSkip to conversation

xtables: Call init_extensions6() for static builds

PATCH Applied Erik Wilson 2 participants 2 messages Jul 13, 2021 – Jul 14, 2021 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xtables: Call init_extensions6() for static builds

Initialize extensions from libext6 for cases where xtables is built statically.

---
 iptables/xtables-monitor.c    | 1 +
 iptables/xtables-restore.c    | 1 +
 iptables/xtables-save.c       | 1 +
 iptables/xtables-standalone.c | 1 +
 iptables/xtables-translate.c  | 1 +
 5 files changed, 5 insertions(+)
iptables/xtables-monitor.c +1 -0
index 4b980980..21d4bec0 100644
@@ -628,6 +628,7 @@ int xtables_monitor_main(int argc, char *argv[])
 #if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
 	init_extensions();
 	init_extensions4();
+	init_extensions6();
 #endif
 
 	if (nft_init(&h, AF_INET, xtables_ipv4)) {
iptables/xtables-restore.c +1 -0
index d2739497..72832103 100644
@@ -364,6 +364,7 @@ xtables_restore_main(int family, const char *progname, int argc, char *argv[])
 #if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
 		init_extensions();
 		init_extensions4();
+		init_extensions6();
 #endif
 		break;
 	case NFPROTO_ARP:
iptables/xtables-save.c +1 -0
index cfce0472..98cd0ed3 100644
@@ -203,6 +203,7 @@ xtables_save_main(int family, int argc, char *argv[],
 #if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
 		init_extensions();
 		init_extensions4();
+		init_extensions6();
 #endif
 		tables = xtables_ipv4;
 		d.commit = true;
iptables/xtables-standalone.c +1 -0
index 7b71db62..1a6b7cf7 100644
@@ -57,6 +57,7 @@ xtables_main(int family, const char *progname, int argc, char *argv[])
 #if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
 	init_extensions();
 	init_extensions4();
+	init_extensions6();
 #endif
 
 	if (nft_init(&h, family, xtables_ipv4) < 0) {
iptables/xtables-translate.c +1 -0
index 33ba68ec..49f44b6f 100644
@@ -482,6 +482,7 @@ static int xtables_xlate_main_common(struct nft_handle *h,
 #if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
 	init_extensions();
 	init_extensions4();
+	init_extensions6();
 #endif
 		tables = xtables_ipv4;
 		break;
Signature · 1 line
2.28.0