netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mart Frauenlob <mart.frauenlob@chello.at>
To: netfilter-devel@vger.kernel.org
Cc: "netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: [PATCH] ip[6]tables: show --protocol instead of --proto in usage
Date: Wed, 20 Mar 2013 15:14:06 +0100	[thread overview]
Message-ID: <5149C42E.4040900@chello.at> (raw)

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

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

[-- Attachment #2: Show-protocol-instead-of-proto-in-usage-text.patch --]
[-- Type: text/plain, Size: 1582 bytes --]

>From b93b66aed17fb53fd3c5b4787694f1bf99a585a6 Mon Sep 17 00:00:00 2001
From: Mart Frauenlob <mart.frauenlob@chello.at>
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"
-- 
1.7.2.5


             reply	other threads:[~2013-03-20 14:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-20 14:14 Mart Frauenlob [this message]
2013-03-29  7:31 ` [PATCH] ip[6]tables: show --protocol instead of --proto in usage Mart Frauenlob
2013-04-01 11:18 ` 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=5149C42E.4040900@chello.at \
    --to=mart.frauenlob@chello.at \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=netfilter@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).