From patchwork Thu Jan 3 10:41:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Weber X-Patchwork-Id: 209207 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 6AB152C007E for ; Thu, 3 Jan 2013 21:41:47 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753045Ab3ACKlp (ORCPT ); Thu, 3 Jan 2013 05:41:45 -0500 Received: from mx2.sophos.com ([145.253.124.138]:59437 "EHLO mx2.sophos.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753039Ab3ACKlp (ORCPT ); Thu, 3 Jan 2013 05:41:45 -0500 Received: from mx2.sophos.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 5395060002 for ; Thu, 3 Jan 2013 10:41:44 +0000 (GMT) Received: from de-wie-exch3b.green.sophos (de-wie-exch3b.green.sophos [10.60.70.62]) by mx2.sophos.com (Postfix) with ESMTPS id 2ACAA60001 for ; Thu, 3 Jan 2013 10:41:44 +0000 (GMT) Received: from uweber-WS (10.128.129.40) by de-wie-exch3b.green.sophos (10.60.70.62) with Microsoft SMTP Server (TLS) id 14.2.247.3; Thu, 3 Jan 2013 11:41:43 +0100 Date: Thu, 3 Jan 2013 11:41:38 +0100 From: Ulrich Weber To: Subject: [PATCH] iptables: set IPv6 DNAT --to-destination Message-ID: <20130103104125.GA11070@uweber-WS> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [10.128.129.40] DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sophos.com; h=date:from:to:subject:message-id:mime-version:content-type; s=global; bh=6U2sAtvCCfyokJlcNssfH2UTztttlTGHmJSwT7lACQ8=; b=oK84u0QRWNacu9Ibwisdi4rSfIKfiZ12lTt5fJrKcYglQN94aNlX8OTsfiNG8O1aUgaWroK0iHzS26es21+FfrMbI3zykDww3sKrrC7GsamCoWSlP3ax+Q7U0wTeLv/+Fa84L3SBVJWLP+GcF5aYamBV2wcHELY2cP1Tqmhmj6Q= Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org as in IPv4 and fixes DNAT_save Signed-off-by: Ulrich Weber --- 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 [[-]][:port[-port]]\n" -" Address to map source to.\n" +" --to-destination [[-]][: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");