netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] conntrack: Rename option --protonum to --proto.
@ 2016-04-05 21:31 Mart Frauenlob
  2016-04-07  9:42 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 3+ messages in thread
From: Mart Frauenlob @ 2016-04-05 21:31 UTC (permalink / raw)
  To: netfilter-devel

Usage shows --protonum, while the man page talks about --proto.
Should be --proto in usage too. --protonum remains valid,
but is marked deprecated in source.

Signed-off-by: Mart Frauenlob <mart.frauenlob@chello.at>
---
 src/conntrack.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/conntrack.c b/src/conntrack.c
index 076d8a3..7a286eb 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -286,7 +286,7 @@ static const char *optflags[NUMBER_OF_OPT] = {
 	[CT_OPT_ORIG_DST_BIT]	= "orig-dst",
 	[CT_OPT_REPL_SRC_BIT]	= "reply-src",
 	[CT_OPT_REPL_DST_BIT]	= "reply-dst",
-	[CT_OPT_PROTO_BIT]	= "protonum",
+	[CT_OPT_PROTO_BIT]	= "proto",
 	[CT_OPT_TIMEOUT_BIT]	= "timeout",
 	[CT_OPT_STATUS_BIT]	= "status",
 	[CT_OPT_ZERO_BIT]	= "zero",
@@ -331,7 +331,8 @@ static struct option original_opts[] = {
 	{"dst", 1, 0, 'd'},
 	{"reply-src", 1, 0, 'r'},
 	{"reply-dst", 1, 0, 'q'},
-	{"protonum", 1, 0, 'p'},
+	{"proto", 1, 0, 'p'},
+	{"protonum", 1, 0, 'p'},	/* deprecated */
 	{"timeout", 1, 0, 't'},
 	{"status", 1, 0, 'u'},
 	{"zero", 0, 0, 'z'},
@@ -551,7 +552,7 @@ static const char usage_parameters[] =
 	"  -d, --orig-dst ip\t\tDestination address from original direction\n"
 	"  -r, --reply-src ip\t\tSource addres from reply direction\n"
 	"  -q, --reply-dst ip\t\tDestination address from reply direction\n"
-	"  -p, --protonum proto\t\tLayer 4 Protocol, eg. 'tcp'\n"
+	"  -p, --proto proto\t\tLayer 4 Protocol, eg. 'tcp'\n"
 	"  -f, --family proto\t\tLayer 3 Protocol, eg. 'ipv6'\n"
 	"  -t, --timeout timeout\t\tSet timeout\n"
 	"  -u, --status status\t\tSet status, eg. ASSURED\n"
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] conntrack: Rename option --protonum to --proto.
  2016-04-05 21:31 [PATCH] conntrack: Rename option --protonum to --proto Mart Frauenlob
@ 2016-04-07  9:42 ` Pablo Neira Ayuso
  2016-04-07 17:26   ` Mart Frauenlob
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Neira Ayuso @ 2016-04-07  9:42 UTC (permalink / raw)
  To: Mart Frauenlob; +Cc: netfilter-devel

On Tue, Apr 05, 2016 at 11:31:58PM +0200, Mart Frauenlob wrote:
> Usage shows --protonum, while the man page talks about --proto.
> Should be --proto in usage too. --protonum remains valid,
> but is marked deprecated in source.

You better fix the manpage. Please, don't unnecessarily deprecate
things. Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] conntrack: Rename option --protonum to --proto.
  2016-04-07  9:42 ` Pablo Neira Ayuso
@ 2016-04-07 17:26   ` Mart Frauenlob
  0 siblings, 0 replies; 3+ messages in thread
From: Mart Frauenlob @ 2016-04-07 17:26 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

On 07.04.2016 11:42, Pablo Neira Ayuso wrote:
> On Tue, Apr 05, 2016 at 11:31:58PM +0200, Mart Frauenlob wrote:
>> Usage shows --protonum, while the man page talks about --proto.
>> Should be --proto in usage too. --protonum remains valid,
>> but is marked deprecated in source.
>
> You better fix the manpage. Please, don't unnecessarily deprecate
> things. Thanks.
>

ok, I'll update docs to show both.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-07 17:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-05 21:31 [PATCH] conntrack: Rename option --protonum to --proto Mart Frauenlob
2016-04-07  9:42 ` Pablo Neira Ayuso
2016-04-07 17:26   ` Mart Frauenlob

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).