diff options
author | Ulrich Weber <ulrich.weber@sophos.com> | 2013-01-03 00:41:38 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-01-04 01:33:45 +0100 |
commit | ff338552d318b49e07662fd7648fdb11e3c42bc9 (patch) | |
tree | d1093e1df023685d305591d33c7fd76d1ed08f3a /extensions/libip6t_DNAT.c | |
parent | 92f05a2f38e6c6bc6c69880358c41ac17bd31298 (diff) |
extensions: libip6t_DNAT: set IPv6 DNAT --to-destination
as in IPv4 and fixes DNAT_save
Signed-off-by: Ulrich Weber <ulrich.weber@sophos.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libip6t_DNAT.c')
-rw-r--r-- | extensions/libip6t_DNAT.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/libip6t_DNAT.c b/extensions/libip6t_DNAT.c index 1bba37e2..eaa6bf1e 100644 --- a/extensions/libip6t_DNAT.c +++ b/extensions/libip6t_DNAT.c @@ -29,13 +29,13 @@ static void DNAT_help(void) { printf( "DNAT target options:\n" -" --to-dest [<ipaddr>[-<ipaddr>]][:port[-port]]\n" -" Address to map source to.\n" +" --to-destination [<ipaddr>[-<ipaddr>]][:port[-port]]\n" +" Address to map destination to.\n" "[--random] [--persistent]\n"); } static const struct xt_option_entry DNAT_opts[] = { - {.name = "to-dest", .id = O_TO_DEST, .type = XTTYPE_STRING, + {.name = "to-destination", .id = O_TO_DEST, .type = XTTYPE_STRING, .flags = XTOPT_MAND | XTOPT_MULTI}, {.name = "random", .id = O_RANDOM, .type = XTTYPE_NONE}, {.name = "persistent", .id = O_PERSISTENT, .type = XTTYPE_NONE}, @@ -167,7 +167,7 @@ static void DNAT_parse(struct xt_option_call *cb) get_kernel_version(); if (kernel_version > LINUX_VERSION(2, 6, 10)) xtables_error(PARAMETER_PROBLEM, - "DNAT: Multiple --to-source not supported"); + "DNAT: Multiple --to-destination not supported"); } parse_to(cb->arg, portok, range); break; @@ -223,7 +223,7 @@ static void DNAT_save(const void *ip, const struct xt_entry_target *target) { const struct nf_nat_range *range = (const void *)target->data; - printf(" --to-source "); + printf(" --to-destination "); print_range(range); if (range->flags & NF_NAT_RANGE_PROTO_RANDOM) printf(" --random"); |