netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ulrich Weber <ulrich.weber@sophos.com>
To: <netfilter-devel@vger.kernel.org>
Subject: [PATCH] iptables: set IPv6 DNAT --to-destination
Date: Thu, 3 Jan 2013 11:41:38 +0100	[thread overview]
Message-ID: <20130103104125.GA11070@uweber-WS> (raw)

as in IPv4 and fixes DNAT_save

Signed-off-by: Ulrich Weber <ulrich.weber@sophos.com>
---
 extensions/libip6t_DNAT.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/extensions/libip6t_DNAT.c b/extensions/libip6t_DNAT.c
index 1bba37e..eaa6bf1 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");
-- 
1.8.0.2


             reply	other threads:[~2013-01-03 10:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-03 10:41 Ulrich Weber [this message]
2013-01-04  0:37 ` [PATCH] iptables: set IPv6 DNAT --to-destination Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130103104125.GA11070@uweber-WS \
    --to=ulrich.weber@sophos.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).