diff options
author | Richard Dale <richard.dale@codethink.co.uk> | 2015-06-12 11:54:38 +0100 |
---|---|---|
committer | Richard Dale <richard.dale@codethink.co.uk> | 2015-06-12 11:54:38 +0100 |
commit | fd7b66e7b6f535e56c0ee8eb442298a453ae4572 (patch) | |
tree | 1237058033b77113240efb995643fa4369b9bb21 | |
parent | bf8fb4cfc622aee64a3734c376e5ed6cc99abfed (diff) | |
download | iptables-baserock/1.4.21-openwrt.tar.gz |
Disable legacy revisionsbaserock/1.4.21-openwrt
-rw-r--r-- | extensions/libxt_CT.c | 4 | ||||
-rw-r--r-- | extensions/libxt_conntrack.c | 6 | ||||
-rw-r--r-- | extensions/libxt_multiport.c | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/extensions/libxt_CT.c b/extensions/libxt_CT.c index 6b28fe1b..e9bc3b50 100644 --- a/extensions/libxt_CT.c +++ b/extensions/libxt_CT.c @@ -290,6 +290,7 @@ static void notrack_ct2_tg_init(struct xt_entry_target *target) } static struct xtables_target ct_target_reg[] = { +#ifndef NO_LEGACY { .family = NFPROTO_UNSPEC, .name = "CT", @@ -315,6 +316,7 @@ static struct xtables_target ct_target_reg[] = { .x6_parse = ct_parse_v1, .x6_options = ct_opts_v1, }, +#endif { .family = NFPROTO_UNSPEC, .name = "CT", @@ -329,6 +331,7 @@ static struct xtables_target ct_target_reg[] = { .x6_parse = ct_parse_v1, .x6_options = ct_opts_v1, }, +#ifndef NO_LEGACY { .family = NFPROTO_UNSPEC, .name = "NOTRACK", @@ -366,6 +369,7 @@ static struct xtables_target ct_target_reg[] = { .revision = 0, .version = XTABLES_VERSION, }, +#endif }; void _init(void) diff --git a/extensions/libxt_conntrack.c b/extensions/libxt_conntrack.c index 128bbd20..eb10f275 100644 --- a/extensions/libxt_conntrack.c +++ b/extensions/libxt_conntrack.c @@ -1157,6 +1157,7 @@ static void state_save(const void *ip, const struct xt_entry_match *match) } static struct xtables_match conntrack_mt_reg[] = { +#ifndef NO_LEGACY { .version = XTABLES_VERSION, .name = "conntrack", @@ -1232,6 +1233,7 @@ static struct xtables_match conntrack_mt_reg[] = { .alias = conntrack_print_name_alias, .x6_options = conntrack2_mt_opts, }, +#endif { .version = XTABLES_VERSION, .name = "conntrack", @@ -1262,6 +1264,7 @@ static struct xtables_match conntrack_mt_reg[] = { .alias = conntrack_print_name_alias, .x6_options = conntrack3_mt_opts, }, +#ifndef NO_LEGACY { .family = NFPROTO_UNSPEC, .name = "state", @@ -1292,6 +1295,7 @@ static struct xtables_match conntrack_mt_reg[] = { .x6_parse = state_ct23_parse, .x6_options = state_opts, }, +#endif { .family = NFPROTO_UNSPEC, .name = "state", @@ -1307,6 +1311,7 @@ static struct xtables_match conntrack_mt_reg[] = { .x6_parse = state_ct23_parse, .x6_options = state_opts, }, +#ifndef NO_LEGACY { .family = NFPROTO_UNSPEC, .name = "state", @@ -1320,6 +1325,7 @@ static struct xtables_match conntrack_mt_reg[] = { .x6_parse = state_parse, .x6_options = state_opts, }, +#endif }; void _init(void) diff --git a/extensions/libxt_multiport.c b/extensions/libxt_multiport.c index 03af5a96..e9633082 100644 --- a/extensions/libxt_multiport.c +++ b/extensions/libxt_multiport.c @@ -469,6 +469,7 @@ static void multiport_save6_v1(const void *ip_void, } static struct xtables_match multiport_mt_reg[] = { +#ifndef NO_LEGACY { .family = NFPROTO_IPV4, .name = "multiport", @@ -497,6 +498,7 @@ static struct xtables_match multiport_mt_reg[] = { .save = multiport_save6, .x6_options = multiport_opts, }, +#endif { .family = NFPROTO_IPV4, .name = "multiport", |