2017-03-22 15:02:09 +00:00
|
|
|
--- a/extensions/libxt_conntrack.c
|
|
|
|
+++ b/extensions/libxt_conntrack.c
|
2020-12-03 00:28:39 +00:00
|
|
|
@@ -1395,6 +1395,7 @@ static int conntrack3_mt6_xlate(struct x
|
2015-05-26 09:16:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static struct xtables_match conntrack_mt_reg[] = {
|
|
|
|
+#ifndef NO_LEGACY
|
|
|
|
{
|
|
|
|
.version = XTABLES_VERSION,
|
|
|
|
.name = "conntrack",
|
2020-12-03 00:28:39 +00:00
|
|
|
@@ -1470,6 +1471,7 @@ static struct xtables_match conntrack_mt
|
2015-05-26 09:16:50 +00:00
|
|
|
.alias = conntrack_print_name_alias,
|
|
|
|
.x6_options = conntrack2_mt_opts,
|
|
|
|
},
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
.version = XTABLES_VERSION,
|
|
|
|
.name = "conntrack",
|
2020-12-03 00:28:39 +00:00
|
|
|
@@ -1502,6 +1504,7 @@ static struct xtables_match conntrack_mt
|
2015-05-26 09:16:50 +00:00
|
|
|
.x6_options = conntrack3_mt_opts,
|
2017-03-22 15:02:09 +00:00
|
|
|
.xlate = conntrack3_mt6_xlate,
|
2015-05-26 09:16:50 +00:00
|
|
|
},
|
|
|
|
+#ifndef NO_LEGACY
|
|
|
|
{
|
|
|
|
.family = NFPROTO_UNSPEC,
|
|
|
|
.name = "state",
|
2020-12-03 00:28:39 +00:00
|
|
|
@@ -1532,6 +1535,8 @@ static struct xtables_match conntrack_mt
|
2015-05-26 09:16:50 +00:00
|
|
|
.x6_parse = state_ct23_parse,
|
|
|
|
.x6_options = state_opts,
|
|
|
|
},
|
|
|
|
+#endif
|
|
|
|
+#ifndef NO_LEGACY
|
|
|
|
{
|
|
|
|
.family = NFPROTO_UNSPEC,
|
|
|
|
.name = "state",
|
2020-12-03 00:28:39 +00:00
|
|
|
@@ -1561,6 +1566,7 @@ static struct xtables_match conntrack_mt
|
2015-05-26 09:16:50 +00:00
|
|
|
.x6_parse = state_parse,
|
|
|
|
.x6_options = state_opts,
|
|
|
|
},
|
|
|
|
+#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
void _init(void)
|
2017-03-22 15:02:09 +00:00
|
|
|
--- a/extensions/libxt_CT.c
|
|
|
|
+++ b/extensions/libxt_CT.c
|
2020-12-03 00:28:39 +00:00
|
|
|
@@ -363,6 +363,7 @@ static int xlate_ct1_tg(struct xt_xlate
|
2015-05-26 09:16:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static struct xtables_target ct_target_reg[] = {
|
|
|
|
+#ifndef NO_LEGACY
|
|
|
|
{
|
|
|
|
.family = NFPROTO_UNSPEC,
|
|
|
|
.name = "CT",
|
2020-12-03 00:28:39 +00:00
|
|
|
@@ -388,6 +389,7 @@ static struct xtables_target ct_target_r
|
2015-05-26 09:16:50 +00:00
|
|
|
.x6_parse = ct_parse_v1,
|
|
|
|
.x6_options = ct_opts_v1,
|
|
|
|
},
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
.family = NFPROTO_UNSPEC,
|
|
|
|
.name = "CT",
|
2020-12-03 00:28:39 +00:00
|
|
|
@@ -403,6 +405,7 @@ static struct xtables_target ct_target_r
|
2015-05-26 09:16:50 +00:00
|
|
|
.x6_options = ct_opts_v1,
|
2020-12-03 00:28:39 +00:00
|
|
|
.xlate = xlate_ct1_tg,
|
2015-05-26 09:16:50 +00:00
|
|
|
},
|
|
|
|
+#ifndef NO_LEGACY
|
|
|
|
{
|
|
|
|
.family = NFPROTO_UNSPEC,
|
|
|
|
.name = "NOTRACK",
|
2020-12-03 00:28:39 +00:00
|
|
|
@@ -441,6 +444,7 @@ static struct xtables_target ct_target_r
|
2015-05-26 09:16:50 +00:00
|
|
|
.revision = 0,
|
|
|
|
.version = XTABLES_VERSION,
|
|
|
|
},
|
|
|
|
+#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
void _init(void)
|
2017-03-22 15:02:09 +00:00
|
|
|
--- a/extensions/libxt_multiport.c
|
|
|
|
+++ b/extensions/libxt_multiport.c
|
|
|
|
@@ -571,6 +571,7 @@ static int multiport_xlate6_v1(struct xt
|
2015-05-26 09:16:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static struct xtables_match multiport_mt_reg[] = {
|
|
|
|
+#ifndef NO_LEGACY
|
|
|
|
{
|
|
|
|
.family = NFPROTO_IPV4,
|
|
|
|
.name = "multiport",
|
2017-03-22 15:02:09 +00:00
|
|
|
@@ -601,6 +602,7 @@ static struct xtables_match multiport_mt
|
2015-05-26 09:16:50 +00:00
|
|
|
.x6_options = multiport_opts,
|
2017-03-22 15:02:09 +00:00
|
|
|
.xlate = multiport_xlate6,
|
2015-05-26 09:16:50 +00:00
|
|
|
},
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
.family = NFPROTO_IPV4,
|
|
|
|
.name = "multiport",
|