aboutsummaryrefslogtreecommitdiff
path: root/libipt_FULLCONENAT.c
diff options
context:
space:
mode:
authorGravatar Chion Tang <sdspeedonion@gmail.com> 2018-01-24 20:17:03 +0000
committerGravatar Chion Tang <sdspeedonion@gmail.com> 2018-01-24 20:17:03 +0000
commit09dcc1aa5da05fd4ab69246e6f2cf6b3be96b841 (patch)
tree643b9677415317868201d663e8b6172bd00269b8 /libipt_FULLCONENAT.c
parentAdd xt_FULLCONENAT.c for kernels below 4.1x (diff)
downloadnetfilter-full-cone-nat-09dcc1aa5da05fd4ab69246e6f2cf6b3be96b841.tar.gz
netfilter-full-cone-nat-09dcc1aa5da05fd4ab69246e6f2cf6b3be96b841.tar.bz2
netfilter-full-cone-nat-09dcc1aa5da05fd4ab69246e6f2cf6b3be96b841.zip
remove xlate
Diffstat (limited to 'libipt_FULLCONENAT.c')
-rw-r--r--libipt_FULLCONENAT.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/libipt_FULLCONENAT.c b/libipt_FULLCONENAT.c
index 6f8a56f..1930895 100644
--- a/libipt_FULLCONENAT.c
+++ b/libipt_FULLCONENAT.c
@@ -147,28 +147,6 @@ FULLCONENAT_save(const void *ip, const struct xt_entry_target *target)
printf(" --random-fully");
}
-static int FULLCONENAT_xlate(struct xt_xlate *xl,
- const struct xt_xlate_tg_params *params)
-{
- const struct nf_nat_ipv4_multi_range_compat *mr =
- (const void *)params->target->data;
- const struct nf_nat_ipv4_range *r = &mr->range[0];
-
- xt_xlate_add(xl, "fullconenat");
-
- if (r->flags & NF_NAT_RANGE_PROTO_SPECIFIED) {
- xt_xlate_add(xl, " to :%hu", ntohs(r->min.tcp.port));
- if (r->max.tcp.port != r->min.tcp.port)
- xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port));
- }
-
- xt_xlate_add(xl, " ");
- if (r->flags & NF_NAT_RANGE_PROTO_RANDOM)
- xt_xlate_add(xl, "random ");
-
- return 1;
-}
-
static struct xtables_target fullconenat_tg_reg = {
.name = "FULLCONENAT",
.version = XTABLES_VERSION,
@@ -181,7 +159,6 @@ static struct xtables_target fullconenat_tg_reg = {
.print = FULLCONENAT_print,
.save = FULLCONENAT_save,
.x6_options = FULLCONENAT_opts,
- .xlate = FULLCONENAT_xlate,
};
void _init(void)