1 A modified version of this patch was commited upstream
2 as part of a fixup series
3 https://bugzilla.netfilter.org/show_bug.cgi?id=1593
4 https://git.netfilter.org/iptables/commit/?id=0836524f093c0fd9c39604a46a949e43d9b47ef2
6 --- a/iptables/xtables-monitor.c
7 +++ b/iptables/xtables-monitor.c
8 @@ -629,6 +629,8 @@ int xtables_monitor_main(int argc, char
16 if (nft_init(&h, AF_INET, xtables_ipv4)) {
17 --- a/iptables/xtables-restore.c
18 +++ b/iptables/xtables-restore.c
19 @@ -368,9 +368,17 @@ xtables_restore_main(int family, const c
23 +#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
30 +#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
34 tables = xtables_bridge;
37 --- a/iptables/xtables-save.c
38 +++ b/iptables/xtables-save.c
39 @@ -208,9 +208,17 @@ xtables_save_main(int family, int argc,
43 +#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
49 case NFPROTO_BRIDGE: {
50 +#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
54 const char *ctr = getenv("EBTABLES_SAVE_COUNTER");
56 if (!(d.format & FMT_NOCOUNTS)) {
57 --- a/iptables/xtables-standalone.c
58 +++ b/iptables/xtables-standalone.c
59 @@ -58,6 +58,8 @@ xtables_main(int family, const char *pro
67 if (nft_init(&h, family, xtables_ipv4) < 0) {
68 --- a/iptables/xtables-translate.c
69 +++ b/iptables/xtables-translate.c
70 @@ -474,9 +474,17 @@ static int xtables_xlate_main_common(str
71 tables = xtables_ipv4;
74 +#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
81 +#if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
85 tables = xtables_bridge;
88 --- a/iptables/xtables-arp.c
89 +++ b/iptables/xtables-arp.c
90 @@ -438,6 +438,7 @@ int nft_init_arp(struct nft_handle *h, c
93 #if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)
98 --- a/iptables/xtables-eb.c
99 +++ b/iptables/xtables-eb.c
100 @@ -685,6 +685,7 @@ int nft_init_eb(struct nft_handle *h, co
103 #if defined(ALL_INCLUSIVE) || defined(NO_SHARED_LIBS)