mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
0590d74db2
This reverts commit 10cbc896c0
.
The updated iptables package does not build due to the following error
encountered on the buildbots:
cp: cannot stat '.../iptables-1.8.4/ipkg-install/usr/lib/libiptc.so.*': No such file or directory
The changelog mentions "build: remove -Wl,--no-as-needed and libiptc.so" so
it appears as if further packaging changes are needed beyond a simple
version bump.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
96 lines
2.4 KiB
Diff
96 lines
2.4 KiB
Diff
--- a/extensions/libxt_conntrack.c
|
|
+++ b/extensions/libxt_conntrack.c
|
|
@@ -1389,6 +1389,7 @@ static int conntrack3_mt6_xlate(struct x
|
|
}
|
|
|
|
static struct xtables_match conntrack_mt_reg[] = {
|
|
+#ifndef NO_LEGACY
|
|
{
|
|
.version = XTABLES_VERSION,
|
|
.name = "conntrack",
|
|
@@ -1464,6 +1465,7 @@ static struct xtables_match conntrack_mt
|
|
.alias = conntrack_print_name_alias,
|
|
.x6_options = conntrack2_mt_opts,
|
|
},
|
|
+#endif
|
|
{
|
|
.version = XTABLES_VERSION,
|
|
.name = "conntrack",
|
|
@@ -1496,6 +1498,7 @@ static struct xtables_match conntrack_mt
|
|
.x6_options = conntrack3_mt_opts,
|
|
.xlate = conntrack3_mt6_xlate,
|
|
},
|
|
+#ifndef NO_LEGACY
|
|
{
|
|
.family = NFPROTO_UNSPEC,
|
|
.name = "state",
|
|
@@ -1526,6 +1529,8 @@ static struct xtables_match conntrack_mt
|
|
.x6_parse = state_ct23_parse,
|
|
.x6_options = state_opts,
|
|
},
|
|
+#endif
|
|
+#ifndef NO_LEGACY
|
|
{
|
|
.family = NFPROTO_UNSPEC,
|
|
.name = "state",
|
|
@@ -1555,6 +1560,7 @@ static struct xtables_match conntrack_mt
|
|
.x6_parse = state_parse,
|
|
.x6_options = state_opts,
|
|
},
|
|
+#endif
|
|
};
|
|
|
|
void _init(void)
|
|
--- a/extensions/libxt_CT.c
|
|
+++ b/extensions/libxt_CT.c
|
|
@@ -349,6 +349,7 @@ static void notrack_ct2_tg_init(struct x
|
|
}
|
|
|
|
static struct xtables_target ct_target_reg[] = {
|
|
+#ifndef NO_LEGACY
|
|
{
|
|
.family = NFPROTO_UNSPEC,
|
|
.name = "CT",
|
|
@@ -374,6 +375,7 @@ static struct xtables_target ct_target_r
|
|
.x6_parse = ct_parse_v1,
|
|
.x6_options = ct_opts_v1,
|
|
},
|
|
+#endif
|
|
{
|
|
.family = NFPROTO_UNSPEC,
|
|
.name = "CT",
|
|
@@ -388,6 +390,7 @@ static struct xtables_target ct_target_r
|
|
.x6_parse = ct_parse_v1,
|
|
.x6_options = ct_opts_v1,
|
|
},
|
|
+#ifndef NO_LEGACY
|
|
{
|
|
.family = NFPROTO_UNSPEC,
|
|
.name = "NOTRACK",
|
|
@@ -425,6 +428,7 @@ static struct xtables_target ct_target_r
|
|
.revision = 0,
|
|
.version = XTABLES_VERSION,
|
|
},
|
|
+#endif
|
|
};
|
|
|
|
void _init(void)
|
|
--- a/extensions/libxt_multiport.c
|
|
+++ b/extensions/libxt_multiport.c
|
|
@@ -571,6 +571,7 @@ static int multiport_xlate6_v1(struct xt
|
|
}
|
|
|
|
static struct xtables_match multiport_mt_reg[] = {
|
|
+#ifndef NO_LEGACY
|
|
{
|
|
.family = NFPROTO_IPV4,
|
|
.name = "multiport",
|
|
@@ -601,6 +602,7 @@ static struct xtables_match multiport_mt
|
|
.x6_options = multiport_opts,
|
|
.xlate = multiport_xlate6,
|
|
},
|
|
+#endif
|
|
{
|
|
.family = NFPROTO_IPV4,
|
|
.name = "multiport",
|