Skip to contentSkip to conversation

ip[6]tables: show --protocol instead of --proto in usage

PATCH Applied Mart Frauenlob 2 participants 3 messages Mar 20, 2013 – Apr 1, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip[6]tables: show --protocol instead of --proto in usage

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 <[email protected]>
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(-)
iptables/ip6tables.c +1 -1
index 4cfbea3..d150a7b 100644
@@ -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"
iptables/iptables.c +1 -1
index 085eea1..79fa37b 100644
@@ -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"
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 6 lines · Mart Frauenlob

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.

[N]OK?

maintainer Applied
#2 lore raw
In reply to Mart Frauenlob
Quoted 6 lines · Mart Frauenlob

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.

Applied, thanks.