From patchwork Wed Mar 20 14:14:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mart Frauenlob X-Patchwork-Id: 229401 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 71A4E2C00A4 for ; Thu, 21 Mar 2013 01:16:18 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751436Ab3CTOQQ (ORCPT ); Wed, 20 Mar 2013 10:16:16 -0400 Received: from fep27.mx.upcmail.net ([62.179.121.47]:56695 "EHLO fep27.mx.upcmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835Ab3CTOQP (ORCPT ); Wed, 20 Mar 2013 10:16:15 -0400 Received: from edge03.upcmail.net ([192.168.13.238]) by viefep14-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20130320141503.FALP1854.viefep14-int.chello.at@edge03.upcmail.net>; Wed, 20 Mar 2013 15:15:03 +0100 Received: from [192.168.13.66] ([80.108.253.46]) by edge03.upcmail.net with edge id DqEy1l00b10poxs03qF2Du; Wed, 20 Mar 2013 15:15:03 +0100 X-SourceIP: 80.108.253.46 X-Authenticated-Sender: mart.frauenlob@chello.at Message-ID: <5149C42E.4040900@chello.at> Date: Wed, 20 Mar 2013 15:14:06 +0100 From: Mart Frauenlob Reply-To: mart.frauenlob@chello.at User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: netfilter-devel@vger.kernel.org CC: "netfilter@vger.kernel.org" Subject: [PATCH] ip[6]tables: show --protocol instead of --proto in usage Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Good day! As the man page shows --protocol not --proto, also do so in the usage text displayed by ip[6]tables -h. Attached patch does the change. Best regards Mart From b93b66aed17fb53fd3c5b4787694f1bf99a585a6 Mon Sep 17 00:00:00 2001 From: Mart Frauenlob Date: Wed, 20 Mar 2013 14:51:03 +0100 Subject: [PATCH] Show --protocol instead of --proto in usage text. --- iptables/ip6tables.c | 2 +- iptables/iptables.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iptables/ip6tables.c b/iptables/ip6tables.c index 4cfbea3..d150a7b 100644 --- a/iptables/ip6tables.c +++ b/iptables/ip6tables.c @@ -237,7 +237,7 @@ exit_printhelp(const struct xtables_rule_match *matches) "Options:\n" " --ipv4 -4 Error (line is ignored by ip6tables-restore)\n" " --ipv6 -6 Nothing (line is ignored by iptables-restore)\n" -"[!] --proto -p proto protocol: by number or name, eg. `tcp'\n" +"[!] --protocol -p proto protocol: by number or name, eg. `tcp'\n" "[!] --source -s address[/mask][,...]\n" " source specification\n" "[!] --destination -d address[/mask][,...]\n" diff --git a/iptables/iptables.c b/iptables/iptables.c index 085eea1..79fa37b 100644 --- a/iptables/iptables.c +++ b/iptables/iptables.c @@ -231,7 +231,7 @@ exit_printhelp(const struct xtables_rule_match *matches) "Options:\n" " --ipv4 -4 Nothing (line is ignored by ip6tables-restore)\n" " --ipv6 -6 Error (line is ignored by iptables-restore)\n" -"[!] --proto -p proto protocol: by number or name, eg. `tcp'\n" +"[!] --protocol -p proto protocol: by number or name, eg. `tcp'\n" "[!] --source -s address[/mask][...]\n" " source specification\n" "[!] --destination -d address[/mask][...]\n"