netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iproute PATCH 00/20] Sync man pages and help texts
@ 2016-02-24  8:21 Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 01/20] ip: align help text with manpage Phil Sutter
                   ` (20 more replies)
  0 siblings, 21 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

This patch series aims at improving consistency of builtin help texts and
related man pages (synopsis section at least). It was created by
comparing the two and fixing up whatever occurred to be broken.

Phil Sutter (20):
  ip: align help text with manpage
  ipaddrlabel: Improve help text precision
  iplink: fix help text syntax
  ipneigh: add missing proxy keyword to help text
  ipntable: Fix typo in help text
  iproute: TYPE keyword is not optional, fix help text accordingly
  iprule: add missing nat keyword to help text
  man: ip-address.8: Minor syntax fixes
  man: ip-link.8: minor font fix
  man: ip-link.8: Fix and improve synopsis
  man: ip-neighbour: Fix for missing NUD_STATE description
  man: ip-netns.8: Clarify synopsis a bit
  man: ip-ntable.8: Review synopsis section
  man: ip-rule.8: Review synopsis section
  man: ip-token.8: Review synopsis section
  man: ip-tunnel.8: Document missing 6rd action
  man: ip-xfrm.8: Document missing parameters
  man: ip.8: Add missing flags and token subcommand description
  man: ip-l2tp.8: Fix BNF syntax
  man: ip-*.8: drop any reference to generic ip options

 ip/ip.c                  |   2 +-
 ip/ipaddrlabel.c         |   3 +-
 ip/iplink.c              |   9 ++--
 ip/ipneigh.c             |   2 +-
 ip/ipntable.c            |   2 +-
 ip/iproute.c             |   6 +--
 ip/iprule.c              |   1 +
 man/man8/ip-address.8.in |   8 ++--
 man/man8/ip-addrlabel.8  |  14 +-----
 man/man8/ip-l2tp.8       |  24 ++++------
 man/man8/ip-link.8.in    | 114 +++++++++++++++++++++++------------------------
 man/man8/ip-monitor.8    |   4 +-
 man/man8/ip-mroute.8     |   2 +-
 man/man8/ip-neighbour.8  |  11 +++--
 man/man8/ip-netns.8      |   4 +-
 man/man8/ip-ntable.8     |  39 +++++++++-------
 man/man8/ip-rule.8       |  19 +++++---
 man/man8/ip-token.8      |  12 ++---
 man/man8/ip-tunnel.8     |  11 +++--
 man/man8/ip-xfrm.8       |  11 +++++
 man/man8/ip.8            |  29 +++++++++++-
 21 files changed, 181 insertions(+), 146 deletions(-)

-- 
2.6.4

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

* [iproute PATCH 01/20] ip: align help text with manpage
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 02/20] ipaddrlabel: Improve help text precision Phil Sutter
                   ` (19 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Although the ip command accepts both "neighbor" and "neighbour" as
subcommand, I assume it's sufficient to list it in help text as just
"neigh" like ip.8 does.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/ip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/ip.c b/ip/ip.c
index eea00b822088e..123f18133a2e5 100644
--- a/ip/ip.c
+++ b/ip/ip.c
@@ -49,7 +49,7 @@ static void usage(void)
 	fprintf(stderr,
 "Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }\n"
 "       ip [ -force ] -batch filename\n"
-"where  OBJECT := { link | address | addrlabel | route | rule | neighbor | ntable |\n"
+"where  OBJECT := { link | address | addrlabel | route | rule | neigh | ntable |\n"
 "                   tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |\n"
 "                   netns | l2tp | fou | tcp_metrics | token | netconf }\n"
 "       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |\n"
-- 
2.6.4

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

* [iproute PATCH 02/20] ipaddrlabel: Improve help text precision
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 01/20] ip: align help text with manpage Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 03/20] iplink: fix help text syntax Phil Sutter
                   ` (18 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Neither 'list' nor 'flush' actions accept parameters, and with given
prefix the action keyword is not optional anymore.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/ipaddrlabel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ip/ipaddrlabel.c b/ip/ipaddrlabel.c
index f01bc269e8f41..ef093cbe6c30d 100644
--- a/ip/ipaddrlabel.c
+++ b/ip/ipaddrlabel.c
@@ -49,7 +49,8 @@ static void usage(void) __attribute__((noreturn));
 
 static void usage(void)
 {
-	fprintf(stderr, "Usage: ip addrlabel [ list | add | del | flush ] prefix PREFIX [ dev DEV ] [ label LABEL ]\n");
+	fprintf(stderr, "Usage: ip addrlabel { add | del } prefix PREFIX [ dev DEV ] [ label LABEL ]\n");
+	fprintf(stderr, "       ip addrlabel [ list | flush | help ]\n");
 	exit(-1);
 }
 
-- 
2.6.4

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

* [iproute PATCH 03/20] iplink: fix help text syntax
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 01/20] ip: align help text with manpage Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 02/20] ipaddrlabel: Improve help text precision Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-03-02 17:38   ` Stephen Hemminger
  2016-02-24  8:21 ` [iproute PATCH 04/20] ipneigh: add missing proxy keyword to help text Phil Sutter
                   ` (17 subsequent siblings)
  20 siblings, 1 reply; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Get rid of extraneous closing brackets and while here, merge the double
netns parameter.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/iplink.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/ip/iplink.c b/ip/iplink.c
index 5ab9d613c4f99..5a220276f1f96 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -70,17 +70,16 @@ void iplink_usage(void)
 	fprintf(stderr, "	                  [ address LLADDR ]\n");
 	fprintf(stderr, "	                  [ broadcast LLADDR ]\n");
 	fprintf(stderr, "	                  [ mtu MTU ]\n");
-	fprintf(stderr, "	                  [ netns PID ]\n");
-	fprintf(stderr, "	                  [ netns NAME ]\n");
+	fprintf(stderr, "	                  [ netns { PID | NAME } ]\n");
 	fprintf(stderr, "	                  [ link-netnsid ID ]\n");
 	fprintf(stderr, "			  [ alias NAME ]\n");
 	fprintf(stderr, "	                  [ vf NUM [ mac LLADDR ]\n");
 	fprintf(stderr, "				   [ vlan VLANID [ qos VLAN-QOS ] ]\n");
 
-	fprintf(stderr, "				   [ rate TXRATE ] ]\n");
+	fprintf(stderr, "				   [ rate TXRATE ]\n");
 
-	fprintf(stderr, "				   [ spoofchk { on | off} ] ]\n");
-	fprintf(stderr, "				   [ query_rss { on | off} ] ]\n");
+	fprintf(stderr, "				   [ spoofchk { on | off} ]\n");
+	fprintf(stderr, "				   [ query_rss { on | off} ]\n");
 	fprintf(stderr, "				   [ state { auto | enable | disable} ] ]\n");
 	fprintf(stderr, "			  [ master DEVICE ]\n");
 	fprintf(stderr, "			  [ nomaster ]\n");
-- 
2.6.4

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

* [iproute PATCH 04/20] ipneigh: add missing proxy keyword to help text
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (2 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 03/20] iplink: fix help text syntax Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 05/20] ipntable: Fix typo in " Phil Sutter
                   ` (16 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

And while we're at it, add whitespace around braces and pipe symbol.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/ipneigh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/ipneigh.c b/ip/ipneigh.c
index 92b7cd6f2a75b..9b1499b08b060 100644
--- a/ip/ipneigh.c
+++ b/ip/ipneigh.c
@@ -49,7 +49,7 @@ static void usage(void)
 	fprintf(stderr, "Usage: ip neigh { add | del | change | replace } { ADDR [ lladdr LLADDR ]\n"
 		        "          [ nud { permanent | noarp | stale | reachable } ]\n"
 		        "          | proxy ADDR } [ dev DEV ]\n");
-	fprintf(stderr, "       ip neigh {show|flush} [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n");
+	fprintf(stderr, "       ip neigh { show | flush } [ proxy ] [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n");
 	exit(-1);
 }
 
-- 
2.6.4

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

* [iproute PATCH 05/20] ipntable: Fix typo in help text
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (3 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 04/20] ipneigh: add missing proxy keyword to help text Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 06/20] iproute: TYPE keyword is not optional, fix help text accordingly Phil Sutter
                   ` (15 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/ipntable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/ipntable.c b/ip/ipntable.c
index 6eb84e797b263..2763570ae34d7 100644
--- a/ip/ipntable.c
+++ b/ip/ipntable.c
@@ -52,7 +52,7 @@ static void usage(void)
 
 		"PARMS := [ base_reachable MSEC ] [ retrans MSEC ] [ gc_stale MSEC ]\n"
 		"         [ delay_probe MSEC ] [ queue LEN ]\n"
-		"         [ app_probs VAL ] [ ucast_probes VAL ] [ mcast_probes VAL ]\n"
+		"         [ app_probes VAL ] [ ucast_probes VAL ] [ mcast_probes VAL ]\n"
 		"         [ anycast_delay MSEC ] [ proxy_delay MSEC ] [ proxy_queue LEN ]\n"
 		"         [ locktime MSEC ]\n"
 		);
-- 
2.6.4

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

* [iproute PATCH 06/20] iproute: TYPE keyword is not optional, fix help text accordingly
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (4 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 05/20] ipntable: Fix typo in " Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 07/20] iprule: add missing nat keyword to help text Phil Sutter
                   ` (14 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

This is a bit pedantic, but brackets ([]) show optional values and since
TYPE must not become empty, they're not suited to surround the type
keyword choices. Use curly braces instead.

Also add some missing whitespace to the parameter list above.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/iproute.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ip/iproute.c b/ip/iproute.c
index 051fc12d197eb..5b954478cfb7f 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -82,13 +82,13 @@ static void usage(void)
 	fprintf(stderr, "FAMILY := [ inet | inet6 | ipx | dnet | mpls | bridge | link ]\n");
 	fprintf(stderr, "OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ] [ as [ to ] ADDRESS ]\n");
 	fprintf(stderr, "           [ rtt TIME ] [ rttvar TIME ] [ reordering NUMBER ]\n");
-	fprintf(stderr, "           [ window NUMBER] [ cwnd NUMBER ] [ initcwnd NUMBER ]\n");
+	fprintf(stderr, "           [ window NUMBER ] [ cwnd NUMBER ] [ initcwnd NUMBER ]\n");
 	fprintf(stderr, "           [ ssthresh NUMBER ] [ realms REALM ] [ src ADDRESS ]\n");
 	fprintf(stderr, "           [ rto_min TIME ] [ hoplimit NUMBER ] [ initrwnd NUMBER ]\n");
 	fprintf(stderr, "           [ features FEATURES ] [ quickack BOOL ] [ congctl NAME ]\n");
 	fprintf(stderr, "           [ pref PREF ] [ expires TIME ]\n");
-	fprintf(stderr, "TYPE := [ unicast | local | broadcast | multicast | throw |\n");
-	fprintf(stderr, "          unreachable | prohibit | blackhole | nat ]\n");
+	fprintf(stderr, "TYPE := { unicast | local | broadcast | multicast | throw |\n");
+	fprintf(stderr, "          unreachable | prohibit | blackhole | nat }\n");
 	fprintf(stderr, "TABLE_ID := [ local | main | default | all | NUMBER ]\n");
 	fprintf(stderr, "SCOPE := [ host | link | global | NUMBER ]\n");
 	fprintf(stderr, "NHFLAGS := [ onlink | pervasive ]\n");
-- 
2.6.4

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

* [iproute PATCH 07/20] iprule: add missing nat keyword to help text
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (5 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 06/20] iproute: TYPE keyword is not optional, fix help text accordingly Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 08/20] man: ip-address.8: Minor syntax fixes Phil Sutter
                   ` (13 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/iprule.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ip/iprule.c b/ip/iprule.c
index 9923b8eb097d2..a7b53f43d4e17 100644
--- a/ip/iprule.c
+++ b/ip/iprule.c
@@ -38,6 +38,7 @@ static void usage(void)
 	fprintf(stderr, "SELECTOR := [ not ] [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK[/MASK] ]\n");
 	fprintf(stderr, "            [ iif STRING ] [ oif STRING ] [ pref NUMBER ]\n");
 	fprintf(stderr, "ACTION := [ table TABLE_ID ]\n");
+	fprintf(stderr, "          [ nat ADDRESS ]\n");
 	fprintf(stderr, "          [ realms [SRCREALM/]DSTREALM ]\n");
 	fprintf(stderr, "          [ goto NUMBER ]\n");
 	fprintf(stderr, "          SUPPRESSOR\n");
-- 
2.6.4

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

* [iproute PATCH 08/20] man: ip-address.8: Minor syntax fixes
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (6 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 07/20] iprule: add missing nat keyword to help text Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 09/20] man: ip-link.8: minor font fix Phil Sutter
                   ` (12 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Clarify that the optional '-' prefix of the 'tentative', 'deprecated'
and 'dadfailed' keywords has to be put right in front of them, no
whitespace is allowed in between.

In addition to that, clarify that it is valid to pass both 'valid_lft'
and 'preferred_lft' at the same time to 'ip address'.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-address.8.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/man/man8/ip-address.8.in b/man/man8/ip-address.8.in
index 159d9065f0c9b..ff3fe0b96b02a 100644
--- a/man/man8/ip-address.8.in
+++ b/man/man8/ip-address.8.in
@@ -58,9 +58,9 @@ ip-address \- protocol address management
 
 .ti -8
 .IR FLAG " := "
-.RB "[ " permanent " | " dynamic " | " secondary " | " primary " | \
-[ - ] " tentative " | [ - ] " deprecated " | [ - ] " dadfailed " | "\
-temporary " | " CONFFLAG-LIST " ]"
+.RB "[ " permanent " | " dynamic " | " secondary " | " primary " |"
+.RB [ - ] tentative " | [" - ] deprecated " | [" - ] dadfailed " |"
+.BR temporary " | " CONFFLAG-LIST " ]"
 
 .ti -8
 .IR CONFFLAG-LIST " := [ "  CONFFLAG-LIST " ] " CONFFLAG
@@ -72,7 +72,7 @@ temporary " | " CONFFLAG-LIST " ]"
 .ti -8
 .IR LIFETIME " := [ "
 .BI valid_lft " LFT"
-.RB "| " preferred_lft
+.RB "] [ " preferred_lft
 .IR  LFT " ]"
 
 .ti -8
-- 
2.6.4

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

* [iproute PATCH 09/20] man: ip-link.8: minor font fix
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (7 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 08/20] man: ip-address.8: Minor syntax fixes Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 10/20] man: ip-link.8: Fix and improve synopsis Phil Sutter
                   ` (11 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

We commonly use bold font for terminals and italic for non-terminals.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-link.8.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index 4d3234352004e..27c9a321c2af8 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -49,7 +49,7 @@ ip-link \- network device configuration
 .RB "[ " numrxqueues
 .IR QUEUE_COUNT " ]"
 .br
-.BR type " TYPE"
+.BI type " TYPE"
 .RI "[ " ARGS " ]"
 
 .ti -8
-- 
2.6.4

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

* [iproute PATCH 10/20] man: ip-link.8: Fix and improve synopsis
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (8 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 09/20] man: ip-link.8: minor font fix Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 11/20] man: ip-neighbour: Fix for missing NUD_STATE description Phil Sutter
                   ` (10 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Reflect that it is possible to pass multiple parameters at the same
time, also use the same trick the help text uses to emphasize vf
specific parameters.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-link.8.in | 97 ++++++++++++++++++++++++++++-----------------------
 1 file changed, 53 insertions(+), 44 deletions(-)

diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index 27c9a321c2af8..cc0842f01ab59 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -92,78 +92,87 @@ ip-link \- network device configuration
 .BR "ip link set " {
 .IR DEVICE " | "
 .BI "group " GROUP
-.RB "} { " up " | " down " | " arp " { " on " | " off " } |"
+.RB "} [ { " up " | " down " } ]"
 .br
-.BR promisc " { " on " | " off " } |"
+.RB "[ " arp " { " on " | " off " } ]"
 .br
-.BR allmulticast " { " on " | " off " } |"
+.RB "[ " dynamic " { " on " | " off " } ]"
 .br
-.BR dynamic " { " on " | " off " } |"
+.RB "[ " multicast " { " on " | " off " } ]"
 .br
-.BR multicast " { " on " | " off " } |"
+.RB "[ " allmulticast " { " on " | " off " } ]"
 .br
-.BR protodown " { " on " | " off " } |"
+.RB "[ " promisc " { " on " | " off " } ]"
 .br
-.B  txqueuelen
-.IR PACKETS " |"
+.RB "[ " protodown " { " on " | " off " } ]"
 .br
-.B  name
-.IR NEWNAME " |"
+.RB "[ " trailers " { " on " | " off " } ]"
 .br
-.B  address
-.IR LLADDR " |"
-.B  broadcast
-.IR LLADDR " |"
+.RB "[ " txqueuelen
+.IR PACKETS " ]"
 .br
-.B  mtu
-.IR MTU " |"
+.RB "[ " name
+.IR NEWNAME " ]"
 .br
-.B  netns
-.IR PID " |"
+.RB "[ " address
+.IR LLADDR " ]"
 .br
-.B  netns
-.IR NETNSNAME " |"
+.RB "[ " broadcast
+.IR LLADDR " ]"
 .br
-.B alias
-.IR NAME  " |"
+.RB "[ " mtu
+.IR MTU " ]"
 .br
-.B vf
+.RB "[ " netns " {"
+.IR PID " | " NETNSNAME " } ]"
+.br
+.RB "[ " link-netnsid
+.IR ID " ]"
+.br
+.RB "[ " alias
+.IR NAME  " ]"
+.br
+.RB "[ " vf
 .IR NUM " ["
 .B  mac
-.IR LLADDR " ] ["
-.B vlan
+.IR LLADDR " ]"
+.br
+.in +9
+.RB "[ " vlan
 .IR VLANID " [ "
 .B qos
-.IR VLAN-QOS " ] ] ["
-.B rate
-.IR TXRATE " ] ["
-.B max_tx_rate
-.IR TXRATE " ] ["
-.B min_tx_rate
-.IR TXRATE " ] ["
-.B spoofchk { on | off } ] [
-.B state { auto | enable | disable}
-] |
+.IR VLAN-QOS " ] ]"
 .br
-.B master
-.IR DEVICE " |"
+.RB "[ " rate
+.IR TXRATE " ]"
+.br
+.RB "[ " max_tx_rate
+.IR TXRATE " ]"
 .br
-.B nomaster " |"
+.RB "[ " min_tx_rate
+.IR TXRATE " ]"
 .br
-.B addrgenmode { eui64 | none | stable_secret | random }
+.RB "[ " spoofchk " { " on " | " off " } ]"
 .br
-.B link-netnsid ID
-.BR " }"
+.RB "[ " state " { " auto " | " enable " | " disable " } ] ]"
+.br
+.in -9
+.RB "[ " master
+.IR DEVICE " ]"
+.br
+.RB "[ " nomaster " ]"
+.br
+.RB "[ " addrgenmode " { " eui64 " | " none " | " stable_secret " | " random " } ]"
 
 
 .ti -8
 .B ip link show
 .RI "[ " DEVICE " | "
 .B group
-.IR GROUP " | "
-.BR up " | "
+.IR GROUP " ] ["
+.BR up " ] ["
 .B master
-.IR DEVICE " | "
+.IR DEVICE " ] ["
 .B type
 .IR TYPE " ]"
 
-- 
2.6.4

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

* [iproute PATCH 11/20] man: ip-neighbour: Fix for missing NUD_STATE description
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (9 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 10/20] man: ip-link.8: Fix and improve synopsis Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 12/20] man: ip-netns.8: Clarify synopsis a bit Phil Sutter
                   ` (9 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-neighbour.8 | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/man/man8/ip-neighbour.8 b/man/man8/ip-neighbour.8
index c9b0256e12207..19c6d9d8bf605 100644
--- a/man/man8/ip-neighbour.8
+++ b/man/man8/ip-neighbour.8
@@ -18,7 +18,9 @@ ip-neighbour \- neighbour/arp tables management.
 .IR ADDR " [ "
 .B  lladdr
 .IR LLADDR " ] [ "
-.BR nud " { " permanent " | " noarp " | " stale " | " reachable " } ] | " proxy
+.B nud
+.IR STATE " ] |"
+.B proxy
 .IR ADDR " } [ "
 .B  dev
 .IR DEV " ]"
@@ -31,6 +33,9 @@ ip-neighbour \- neighbour/arp tables management.
 .B  nud
 .IR STATE " ]"
 
+.ti -8
+.IR STATE " := {"
+.BR permanent " | " noarp " | " stale " | " reachable " }"
 
 .SH DESCRIPTION
 The
@@ -75,7 +80,7 @@ can also be
 .BR "null" .
 
 .TP
-.BI nud " NUD_STATE"
+.BI nud " STATE"
 the state of the neighbour entry.
 .B nud
 is an abbreviation for 'Neighbour Unreachability Detection'.
@@ -147,7 +152,7 @@ list neighbour proxies.
 only list neighbours which are not currently in use.
 
 .TP
-.BI nud " NUD_STATE"
+.BI nud " STATE"
 only list neighbour entries in this state.
 .I NUD_STATE
 takes values listed below or the special value
-- 
2.6.4

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

* [iproute PATCH 12/20] man: ip-netns.8: Clarify synopsis a bit
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (10 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 11/20] man: ip-neighbour: Fix for missing NUD_STATE description Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 13/20] man: ip-ntable.8: Review synopsis section Phil Sutter
                   ` (8 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Use brackets to show that 'ip netns' defaults to action 'list', drop
superfluous curly braces around 'set' action keyword.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-netns.8 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/man8/ip-netns.8 b/man/man8/ip-netns.8
index c9b0fbc2c163d..c5310e24ed40b 100644
--- a/man/man8/ip-netns.8
+++ b/man/man8/ip-netns.8
@@ -13,7 +13,7 @@ ip-netns \- process network namespace management
 .BR help " }"
 .sp
 .ti -8
-.BR "ip netns" " { " list " } "
+.BR "ip netns" " [ " list " ]"
 
 .ti -8
 .B ip netns add
@@ -24,7 +24,7 @@ ip-netns \- process network namespace management
 .RI "[ " NETNSNAME " ]"
 
 .ti -8
-.BR "ip netns" " { " set " } "
+.B ip netns set
 .I NETNSNAME NETNSID
 
 .ti -8
-- 
2.6.4

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

* [iproute PATCH 13/20] man: ip-ntable.8: Review synopsis section
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (11 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 12/20] man: ip-netns.8: Clarify synopsis a bit Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 14/20] man: ip-rule.8: " Phil Sutter
                   ` (7 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

The first line contained a c'n'p error, incorrectly listing 'ip address'
syntax. Since PARAMS is used just once and there are not many other
parameters to 'ip ntable change', state them inline and in addition to
that clarify the possibility to pass multiple parameters at once.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-ntable.8 | 39 ++++++++++++++++++++++-----------------
 1 file changed, 22 insertions(+), 17 deletions(-)

diff --git a/man/man8/ip-ntable.8 b/man/man8/ip-ntable.8
index 462e5896b6482..4f0f2e548a21e 100644
--- a/man/man8/ip-ntable.8
+++ b/man/man8/ip-ntable.8
@@ -8,7 +8,7 @@ ip-ntable - neighbour table configuration
 .ti -8
 .B ip
 .RI "[ " OPTIONS " ]"
-.B address
+.B ntable
 .RI " { " COMMAND " | "
 .BR help " }"
 .sp
@@ -17,34 +17,39 @@ ip-ntable - neighbour table configuration
 .BR "ip ntable change name"
 .IR NAME " [ "
 .B dev
-.IR DEV " ] " PARMS
-
-.ti -8
-.IR PARMS " := { "
+.IR DEV " ] ["
 .B thresh1
-.IR VAL " | "
+.IR VAL " ] ["
 .B thresh2
-.IR VAL " | "
+.IR VAL " ] ["
 .B thresh3
-.IR VAL " | "
+.IR VAL " ] ["
 .B gc_int
-.IR MSEC " | "
+.IR MSEC " ] ["
 .B base_reachable
-.IR MSEC " | "
+.IR MSEC " ] ["
 .B retrans
-.IR MSEC " | " "gc_stale MSEC " " | "
+.IR MSEC " ] ["
+.B gc_stale
+.IR MSEC " ] ["
 .B delay_probe
-.IR MSEC " | " "queue LEN " " | "
+.IR MSEC " ] ["
+.B queue
+.IR LEN " ] ["
 .B app_probs
-.IR VAL " | "
+.IR VAL " ] ["
 .B ucast_probes
-.IR VAL " | " "mcast_probes VAL " " | "
+.IR VAL " ] ["
+.B mcast_probes
+.IR VAL " ] ["
 .B anycast_delay
-.IR MSEC " | "
+.IR MSEC " ] ["
 .B proxy_delay
-.IR MSEC " | " "proxy_queue LEN " " | "
+.IR MSEC " ] ["
+.B proxy_queue
+.IR LEN " ] ["
 .B locktime
-.IR MSEC " }"
+.IR MSEC " ]"
 
 .ti -8
 .BR "ip ntable show" " [ "
-- 
2.6.4

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

* [iproute PATCH 14/20] man: ip-rule.8: Review synopsis section
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (12 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 13/20] man: ip-ntable.8: Review synopsis section Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 15/20] man: ip-token.8: " Phil Sutter
                   ` (6 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Clarify that 'ip rule' defaults to action 'list', that 'flush' and
'save' actions don't accept additional parameters, add missing 'not' and
'goto' keywords and finally fix fonts used in 'fwmark' and 'realms'
parameters.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-rule.8 | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/man/man8/ip-rule.8 b/man/man8/ip-rule.8
index b7008c6ab13d7..e9fbb3cf1a62d 100644
--- a/man/man8/ip-rule.8
+++ b/man/man8/ip-rule.8
@@ -9,20 +9,26 @@ ip-rule \- routing policy database management
 .B ip
 .RI "[ " OPTIONS " ]"
 .B rule
-.RI " { " COMMAND " | "
+.RI "{ " COMMAND " | "
 .BR help " }"
 .sp
 
 .ti -8
 .B  ip rule
-.RB " [ " list " | " add " | " del " | " flush " | " save " ]"
+.RB "[ " list " ]"
+
+.ti -8
+.B  ip rule
+.RB "{ " add " | " del " }"
 .I  SELECTOR ACTION
 
 .ti -8
-.B  ip rule  " restore "
+.B ip rule
+.RB "{ " flush " | " save " | " restore " }"
 
 .ti -8
 .IR SELECTOR " := [ "
+.BR not " ] ["
 .B  from
 .IR PREFIX " ] [ "
 .B  to
@@ -30,7 +36,7 @@ ip-rule \- routing policy database management
 .B  tos
 .IR TOS " ] [ "
 .B  fwmark
-.IR FWMARK[/MASK] " ] [ "
+.IR FWMARK\fR[\fB/\fIMASK "] ] [ "
 .B  iif
 .IR STRING " ] [ "
 .B  oif
@@ -45,8 +51,9 @@ ip-rule \- routing policy database management
 .B  nat
 .IR ADDRESS " ] [ "
 .B realms
-.RI "[" SRCREALM "/]" DSTREALM " ]"
-.I  SUPPRESSOR
+.RI "[" SRCREALM "\fB/\fR]" DSTREALM " ] ["
+.B goto
+.IR NUMBER " ] " SUPPRESSOR
 
 .ti -8
 .IR SUPPRESSOR " := [ "
-- 
2.6.4

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

* [iproute PATCH 15/20] man: ip-token.8: Review synopsis section
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (13 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 14/20] man: ip-rule.8: " Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 16/20] man: ip-tunnel.8: Document missing 6rd action Phil Sutter
                   ` (5 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Drop unnecessary curly braces around single action keywords, point out
that 'dev' parameter to 'ip token get' is optional and clarify that 'ip
token' defaults to 'list' action.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-token.8 | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/man/man8/ip-token.8 b/man/man8/ip-token.8
index 35a3d1e3e45bf..260f366af196f 100644
--- a/man/man8/ip-token.8
+++ b/man/man8/ip-token.8
@@ -7,23 +7,23 @@ ip-token \- tokenized interface identifier support
 .in +8
 .ti -8
 .B ip token
-.RI " { " COMMAND " | "
+.RI "{ " COMMAND " | "
 .BR help " }"
 .sp
 
 .ti -8
-.BR "ip token" " { " set " } "
+.B ip token set
 .IR TOKEN
 .B dev
 .IR DEV
 
 .ti -8
-.BR "ip token" " { " get " } "
-.B dev
-.IR DEV
+.B ip token get
+.RB "[ " dev
+.IR DEV " ]"
 
 .ti -8
-.BR "ip token" " { " list " }"
+.BR "ip token" " [ " list " ]"
 
 .SH "DESCRIPTION"
 IPv6 tokenized interface identifier support is used for assigning well-known
-- 
2.6.4

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

* [iproute PATCH 16/20] man: ip-tunnel.8: Document missing 6rd action
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (14 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 15/20] man: ip-token.8: " Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 17/20] man: ip-xfrm.8: Document missing parameters Phil Sutter
                   ` (4 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Also drop the non-terminal 'TIME' description as it is not referenced
anywhere.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-tunnel.8 | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/man/man8/ip-tunnel.8 b/man/man8/ip-tunnel.8
index 8b746cb0f52b8..4938c7405ce85 100644
--- a/man/man8/ip-tunnel.8
+++ b/man/man8/ip-tunnel.8
@@ -11,7 +11,7 @@ ip-tunnel - tunnel configuration
 .ti -8
 .BR "ip "
 .RI "[ " OPTIONS " ]"
-.BR "tunnel" " { " add " | " change " | " del " | " show " | " prl " }"
+.BR "tunnel" " { " add " | " change " | " del " | " show " | " prl " | " 6rd " }"
 .RI "[ " NAME " ]"
 .br
 .RB "[ " mode
@@ -42,6 +42,12 @@ ip-tunnel - tunnel configuration
 .B prl-delete
 .IR ADDR " ]"
 .br
+.RB "[ " 6rd-prefix
+.IR ADDR " ] ["
+.B 6rd-relay_prefix
+.IR ADDR " ] [
+.BR 6rd-reset " ]"
+.br
 .RB "[ [" no "]" pmtudisc " ]"
 .RB "[ " dev
 .IR PHYS_DEV " ]"
@@ -75,9 +81,6 @@ ip-tunnel - tunnel configuration
 .ti -8
 .IR KEY " := { " DOTTED_QUAD " | " NUMBER " }"
 
-.ti -8
-.IR TIME " := " NUMBER "[s|ms]"
-
 .SH DESCRIPTION
 .B tunnel
 objects are tunnels, encapsulating packets in IP packets and then
-- 
2.6.4

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

* [iproute PATCH 17/20] man: ip-xfrm.8: Document missing parameters
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (15 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 16/20] man: ip-tunnel.8: Document missing 6rd action Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 18/20] man: ip.8: Add missing flags and token subcommand description Phil Sutter
                   ` (3 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Namely, 'extra-flag' of 'ip xfrm state' and 'flag' of 'ip xfrm policy'.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-xfrm.8 | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/man/man8/ip-xfrm.8 b/man/man8/ip-xfrm.8
index dae0728811b2e..11f710470377f 100644
--- a/man/man8/ip-xfrm.8
+++ b/man/man8/ip-xfrm.8
@@ -57,6 +57,8 @@ ip-xfrm \- transform configuration
 .IR ADDR "[/" PLEN "] ]"
 .RB "[ " ctx
 .IR CTX " ]"
+.RB "[ " extra-flag
+.IR EXTRA-FLAG-LIST " ]"
 
 .ti -8
 .B "ip xfrm state allocspi"
@@ -196,6 +198,13 @@ ip-xfrm \- transform configuration
 .IR SPORT " " DPORT " " OADDR
 
 .ti -8
+.IR EXTRA-FLAG-LIST " := [ " EXTRA-FLAG-LIST " ] " EXTRA-FLAG
+
+.ti -8
+.IR EXTRA-FLAG " := "
+.B dont-encap-dscp
+
+.ti -8
 .BR "ip xfrm policy" " { " add " | " update " }"
 .I SELECTOR
 .B dir
@@ -247,6 +256,8 @@ ip-xfrm \- transform configuration
 .IR ACTION " ]"
 .RB "[ " priority
 .IR PRIORITY " ]"
+.RB "[ " flag
+.IR FLAG-LIST "]"
 
 .ti -8
 .B "ip xfrm policy flush"
-- 
2.6.4

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

* [iproute PATCH 18/20] man: ip.8: Add missing flags and token subcommand description
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (16 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 17/20] man: ip-xfrm.8: Document missing parameters Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 19/20] man: ip-l2tp.8: Fix BNF syntax Phil Sutter
                   ` (2 subsequent siblings)
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip.8 | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/man/man8/ip.8 b/man/man8/ip.8
index b1f6907367275..aa2bc68c81ab6 100644
--- a/man/man8/ip.8
+++ b/man/man8/ip.8
@@ -21,7 +21,7 @@ ip \- show / manipulate routing, devices, policy routing and tunnels
 .IR OBJECT " := { "
 .BR link " | " address " | " addrlabel " | " route " | " rule " | " neigh " | "\
  ntable " | " tunnel " | " tuntap " | " maddress " | "  mroute " | " mrule " | "\
- monitor " | " xfrm " | " netns " | "  l2tp " | "  tcp_metrics " }"
+ monitor " | " xfrm " | " netns " | "  l2tp " | "  tcp_metrics " | " token " }"
 .sp
 
 .ti -8
@@ -29,10 +29,22 @@ ip \- show / manipulate routing, devices, policy routing and tunnels
 \fB\-V\fR[\fIersion\fR] |
 \fB\-h\fR[\fIuman-readable\fR] |
 \fB\-s\fR[\fItatistics\fR] |
+\fB\-d\fR[\fIetails\fR] |
 \fB\-r\fR[\fIesolve\fR] |
+\fB\-iec\fR |
 \fB\-f\fR[\fIamily\fR] {
 .BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
+\fB-4\fR |
+\fB-6\fR |
+\fB-I\fR |
+\fB-D\fR |
+\fB-B\fR |
+\fB-0\fR |
+\fB-l\fR[\fIoops\fR] { \fBmaximum-addr-flush-attempts\fR } |
 \fB\-o\fR[\fIneline\fR] |
+\fB\-rc\fR[\fIvbuf\fR] [\fBsize\fR] |
+\fB\-t\fR[\fIimestamp\fR] |
+\fB\-ts\fR[\fIhort\fR] |
 \fB\-n\fR[\fIetns\fR] name |
 \fB\-a\fR[\fIll\fR] |
 \fB\-c\fR[\fIolor\fR] }
@@ -179,6 +191,16 @@ Use color output.
 .BR "\-t" , " \-timestamp"
 display current time when using monitor option.
 
+.TP
+.BR "\-ts" , " \-tshort"
+Like
+.BR \-timestamp ,
+but use shorter format.
+
+.TP
+.BR "\-rc" , " \-rcvbuf" <SIZE>
+Set the netlink socket receive buffer size, defaults to 1MB.
+
 .SH IP - COMMAND SYNTAX
 
 .SS
@@ -241,6 +263,10 @@ display current time when using monitor option.
 - manage TCP Metrics
 
 .TP
+.B token
+- manage tokenized interface identifiers.
+
+.TP
 .B tunnel
 - tunnel over IP.
 
@@ -305,6 +331,7 @@ was written by Alexey N. Kuznetsov and added in Linux 2.2.
 .BR ip-route (8),
 .BR ip-rule (8),
 .BR ip-tcp_metrics (8),
+.BR ip-token (8),
 .BR ip-tunnel (8),
 .BR ip-xfrm (8)
 .br
-- 
2.6.4

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

* [iproute PATCH 19/20] man: ip-l2tp.8: Fix BNF syntax
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (17 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 18/20] man: ip.8: Add missing flags and token subcommand description Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-02-24  8:21 ` [iproute PATCH 20/20] man: ip-*.8: drop any reference to generic ip options Phil Sutter
  2016-03-02 19:59 ` [iproute PATCH 00/20] Sync man pages and help texts Stephen Hemminger
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

The 'ADDR' part of 'local' and 'remote' parameters is not optional, but
may also consist of the word 'any'. While at it, add missing whitespace
and fix fonts.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-l2tp.8 | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

diff --git a/man/man8/ip-l2tp.8 b/man/man8/ip-l2tp.8
index 1738035f2400c..5b7041f93fc3d 100644
--- a/man/man8/ip-l2tp.8
+++ b/man/man8/ip-l2tp.8
@@ -15,10 +15,7 @@ ip-l2tp - L2TPv3 static unmanaged tunnel configuration
 .ti -8
 .BR "ip l2tp add tunnel"
 .br
-.B remote
-.RI "[ " ADDR " ]"
-.B local
-.RI "[ " ADDR " ]"
+.BI remote " ADDR " local " ADDR "
 .br
 .B tunnel_id
 .IR ID
@@ -73,24 +70,21 @@ ip-l2tp - L2TPv3 static unmanaged tunnel configuration
 .IR ID
 .br
 .ti -8
-.BR "ip l2tp show tunnel"
-.B "[" tunnel_id
-.IR ID
-.B "]"
+.BR "ip l2tp show tunnel" " [ " tunnel_id
+.IR ID " ]"
 .br
 .ti -8
-.BR "ip l2tp show session"
-.B "[" tunnel_id
-.IR ID
-.B "] [" session_id
-.IR ID
-.B "]"
+.BR "ip l2tp show session" " [ " tunnel_id
+.IR ID .B " ] ["
+.B session_id
+.IR ID " ]"
 .br
 .ti -8
 .IR NAME " := "
 .IR STRING
 .ti -8
-.IR ADDR " := { " IP_ADDRESS " }"
+.IR ADDR " := { " IP_ADDRESS " |"
+.BR any " }"
 .ti -8
 .IR PORT " := { " NUMBER " }"
 .ti -8
-- 
2.6.4

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

* [iproute PATCH 20/20] man: ip-*.8: drop any reference to generic ip options
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (18 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 19/20] man: ip-l2tp.8: Fix BNF syntax Phil Sutter
@ 2016-02-24  8:21 ` Phil Sutter
  2016-03-02 19:59 ` [iproute PATCH 00/20] Sync man pages and help texts Stephen Hemminger
  20 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-02-24  8:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Listing generic 'ip' options in subcommand man pages is redundant and
error-prone, as they won't be kept in sync anyway. Since many other man
pages don't list them either, drop references to them in the remaining
ones.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-addrlabel.8 | 14 +-------------
 man/man8/ip-link.8.in   | 15 +--------------
 man/man8/ip-monitor.8   |  4 +---
 man/man8/ip-mroute.8    |  2 +-
 4 files changed, 4 insertions(+), 31 deletions(-)

diff --git a/man/man8/ip-addrlabel.8 b/man/man8/ip-addrlabel.8
index 51ef5727a0db1..233d6067ab407 100644
--- a/man/man8/ip-addrlabel.8
+++ b/man/man8/ip-addrlabel.8
@@ -6,21 +6,9 @@ ip-addrlabel \- protocol address label management
 .ad l
 .in +8
 .ti -8
-.B ip
-.RI "[ " OPTIONS " ]"
-.B addrlabel
+.B ip addrlabel
 .RI " { " COMMAND " | "
 .BR help " }"
-.sp
-
-.ti -8
-.IR OPTIONS " := { "
-\fB\-V\fR[\fIersion\fR] |
-\fB\-s\fR[\fItatistics\fR] |
-\fB\-r\fR[\fIesolve\fR] |
-\fB\-f\fR[\fIamily\fR] {
-.BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
-\fB\-o\fR[\fIneline\fR] }
 
 .ti -8
 .BR "ip addrlabel" " { " add " | " del " } " prefix
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index cc0842f01ab59..82670bcd9a9c1 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -6,25 +6,12 @@ ip-link \- network device configuration
 .ad l
 .in +8
 .ti -8
-.B ip
-.RI "[ " OPTIONS " ]"
-.B link
+.B ip link
 .RI  " { " COMMAND " | "
 .BR help " }"
 .sp
 
 .ti -8
-.IR OPTIONS " := { "
-\fB\-V\fR[\fIersion\fR] |
-\fB\-h\fR[\fIuman-readable\fR] |
-\fB\-s\fR[\fItatistics\fR] |
-\fB\-r\fR[\fIesolve\fR] |
-\fB\-f\fR[\fIamily\fR] {
-.BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
-\fB\-o\fR[\fIneline\fR] |
-\fB\-br\fR[\fIief\fR] }
-
-.ti -8
 .BI "ip link add"
 .RB "[ " link
 .IR DEVICE " ]"
diff --git a/man/man8/ip-monitor.8 b/man/man8/ip-monitor.8
index d2bd381a8c32e..86f8f9885fefe 100644
--- a/man/man8/ip-monitor.8
+++ b/man/man8/ip-monitor.8
@@ -6,9 +6,7 @@ ip-monitor, rtmon \- state monitoring
 .ad l
 .in +8
 .ti -8
-.BR "ip " " [ "
-.IR ip-OPTIONS " ]"
-.BR  "monitor" " [ " all " |"
+.BR "ip monitor" " [ " all " |"
 .IR OBJECT-LIST " ] ["
 .BI file " FILENAME "
 ] [
diff --git a/man/man8/ip-mroute.8 b/man/man8/ip-mroute.8
index e89b6b2d2cc56..b64e30d33d412 100644
--- a/man/man8/ip-mroute.8
+++ b/man/man8/ip-mroute.8
@@ -6,7 +6,7 @@ ip-mroute \- multicast routing cache management
 .ad l
 .in +8
 .ti -8
-.BR "ip " " [ ip-OPTIONS ] " "mroute show" " [ [ "
+.BR "ip mroute show" " [ [ "
 .BR " to " " ] "
 .IR PREFIX " ] [ "
 .B  from
-- 
2.6.4

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

* Re: [iproute PATCH 03/20] iplink: fix help text syntax
  2016-02-24  8:21 ` [iproute PATCH 03/20] iplink: fix help text syntax Phil Sutter
@ 2016-03-02 17:38   ` Stephen Hemminger
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
  0 siblings, 1 reply; 47+ messages in thread
From: Stephen Hemminger @ 2016-03-02 17:38 UTC (permalink / raw)
  To: Phil Sutter; +Cc: netdev

On Wed, 24 Feb 2016 09:21:16 +0100
Phil Sutter <phil@nwl.cc> wrote:

> Get rid of extraneous closing brackets and while here, merge the double
> netns parameter.
> 
> Signed-off-by: Phil Sutter <phil@nwl.cc>

Patch does not apply to current git.

Applying: iplink: fix help text syntax
error: patch failed: ip/iplink.c:70
error: ip/iplink.c: patch does not apply


Please rebase and resend the whole patch series with v2

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

* [iproute PATCH v2 00/20] Sync man pages and help texts
  2016-03-02 17:38   ` Stephen Hemminger
@ 2016-03-02 18:19     ` Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 01/20] ip: align help text with manpage Phil Sutter
                         ` (19 more replies)
  0 siblings, 20 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

This patch series aims at improving consistency of builtin help texts and
related man pages (synopsis section at least). It was created by
comparing the two and fixing up whatever occurred to be broken.

Changes since v1:
- rebased onto current master
- resolved merge conflict in ip-link.8.in due to added 'trust' option

Phil Sutter (20):
  ip: align help text with manpage
  ipaddrlabel: Improve help text precision
  iplink: fix help text syntax
  ipneigh: add missing proxy keyword to help text
  ipntable: Fix typo in help text
  iproute: TYPE keyword is not optional, fix help text accordingly
  iprule: add missing nat keyword to help text
  man: ip-address.8: Minor syntax fixes
  man: ip-link.8: minor font fix
  man: ip-link.8: Fix and improve synopsis
  man: ip-neighbour: Fix for missing NUD_STATE description
  man: ip-netns.8: Clarify synopsis a bit
  man: ip-ntable.8: Review synopsis section
  man: ip-rule.8: Review synopsis section
  man: ip-token.8: Review synopsis section
  man: ip-tunnel.8: Document missing 6rd action
  man: ip-xfrm.8: Document missing parameters
  man: ip.8: Add missing flags and token subcommand description
  man: ip-l2tp.8: Fix BNF syntax
  man: ip-*.8: drop any reference to generic ip options

 ip/ip.c                  |   2 +-
 ip/ipaddrlabel.c         |   3 +-
 ip/iplink.c              |   9 ++--
 ip/ipneigh.c             |   2 +-
 ip/ipntable.c            |   2 +-
 ip/iproute.c             |   6 +--
 ip/iprule.c              |   1 +
 man/man8/ip-address.8.in |   8 ++--
 man/man8/ip-addrlabel.8  |  14 +-----
 man/man8/ip-l2tp.8       |  24 ++++------
 man/man8/ip-link.8.in    | 117 +++++++++++++++++++++++------------------------
 man/man8/ip-monitor.8    |   4 +-
 man/man8/ip-mroute.8     |   2 +-
 man/man8/ip-neighbour.8  |  11 +++--
 man/man8/ip-netns.8      |   4 +-
 man/man8/ip-ntable.8     |  39 +++++++++-------
 man/man8/ip-rule.8       |  19 +++++---
 man/man8/ip-token.8      |  12 ++---
 man/man8/ip-tunnel.8     |  11 +++--
 man/man8/ip-xfrm.8       |  11 +++++
 man/man8/ip.8            |  29 +++++++++++-
 21 files changed, 183 insertions(+), 147 deletions(-)

-- 
2.7.2

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

* [iproute PATCH v2 01/20] ip: align help text with manpage
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 02/20] ipaddrlabel: Improve help text precision Phil Sutter
                         ` (18 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Although the ip command accepts both "neighbor" and "neighbour" as
subcommand, I assume it's sufficient to list it in help text as just
"neigh" like ip.8 does.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/ip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/ip.c b/ip/ip.c
index eea00b822088e..123f18133a2e5 100644
--- a/ip/ip.c
+++ b/ip/ip.c
@@ -49,7 +49,7 @@ static void usage(void)
 	fprintf(stderr,
 "Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }\n"
 "       ip [ -force ] -batch filename\n"
-"where  OBJECT := { link | address | addrlabel | route | rule | neighbor | ntable |\n"
+"where  OBJECT := { link | address | addrlabel | route | rule | neigh | ntable |\n"
 "                   tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |\n"
 "                   netns | l2tp | fou | tcp_metrics | token | netconf }\n"
 "       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |\n"
-- 
2.7.2

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

* [iproute PATCH v2 02/20] ipaddrlabel: Improve help text precision
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 01/20] ip: align help text with manpage Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 03/20] iplink: fix help text syntax Phil Sutter
                         ` (17 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Neither 'list' nor 'flush' actions accept parameters, and with given
prefix the action keyword is not optional anymore.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/ipaddrlabel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ip/ipaddrlabel.c b/ip/ipaddrlabel.c
index f01bc269e8f41..ef093cbe6c30d 100644
--- a/ip/ipaddrlabel.c
+++ b/ip/ipaddrlabel.c
@@ -49,7 +49,8 @@ static void usage(void) __attribute__((noreturn));
 
 static void usage(void)
 {
-	fprintf(stderr, "Usage: ip addrlabel [ list | add | del | flush ] prefix PREFIX [ dev DEV ] [ label LABEL ]\n");
+	fprintf(stderr, "Usage: ip addrlabel { add | del } prefix PREFIX [ dev DEV ] [ label LABEL ]\n");
+	fprintf(stderr, "       ip addrlabel [ list | flush | help ]\n");
 	exit(-1);
 }
 
-- 
2.7.2

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

* [iproute PATCH v2 03/20] iplink: fix help text syntax
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 01/20] ip: align help text with manpage Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 02/20] ipaddrlabel: Improve help text precision Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 04/20] ipneigh: add missing proxy keyword to help text Phil Sutter
                         ` (16 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Get rid of extraneous closing brackets and while here, merge the double
netns parameter.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/iplink.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/ip/iplink.c b/ip/iplink.c
index 69f50572633b1..33d7c0ad0e827 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -70,17 +70,16 @@ void iplink_usage(void)
 	fprintf(stderr, "	                  [ address LLADDR ]\n");
 	fprintf(stderr, "	                  [ broadcast LLADDR ]\n");
 	fprintf(stderr, "	                  [ mtu MTU ]\n");
-	fprintf(stderr, "	                  [ netns PID ]\n");
-	fprintf(stderr, "	                  [ netns NAME ]\n");
+	fprintf(stderr, "	                  [ netns { PID | NAME } ]\n");
 	fprintf(stderr, "	                  [ link-netnsid ID ]\n");
 	fprintf(stderr, "			  [ alias NAME ]\n");
 	fprintf(stderr, "	                  [ vf NUM [ mac LLADDR ]\n");
 	fprintf(stderr, "				   [ vlan VLANID [ qos VLAN-QOS ] ]\n");
 
-	fprintf(stderr, "				   [ rate TXRATE ] ]\n");
+	fprintf(stderr, "				   [ rate TXRATE ]\n");
 
-	fprintf(stderr, "				   [ spoofchk { on | off} ] ]\n");
-	fprintf(stderr, "				   [ query_rss { on | off} ] ]\n");
+	fprintf(stderr, "				   [ spoofchk { on | off} ]\n");
+	fprintf(stderr, "				   [ query_rss { on | off} ]\n");
 	fprintf(stderr, "				   [ state { auto | enable | disable} ] ]\n");
 	fprintf(stderr, "				   [ trust { on | off} ] ]\n");
 	fprintf(stderr, "			  [ master DEVICE ]\n");
-- 
2.7.2

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

* [iproute PATCH v2 04/20] ipneigh: add missing proxy keyword to help text
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (2 preceding siblings ...)
  2016-03-02 18:19       ` [iproute PATCH v2 03/20] iplink: fix help text syntax Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 05/20] ipntable: Fix typo in " Phil Sutter
                         ` (15 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

And while we're at it, add whitespace around braces and pipe symbol.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/ipneigh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/ipneigh.c b/ip/ipneigh.c
index 92b7cd6f2a75b..9b1499b08b060 100644
--- a/ip/ipneigh.c
+++ b/ip/ipneigh.c
@@ -49,7 +49,7 @@ static void usage(void)
 	fprintf(stderr, "Usage: ip neigh { add | del | change | replace } { ADDR [ lladdr LLADDR ]\n"
 		        "          [ nud { permanent | noarp | stale | reachable } ]\n"
 		        "          | proxy ADDR } [ dev DEV ]\n");
-	fprintf(stderr, "       ip neigh {show|flush} [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n");
+	fprintf(stderr, "       ip neigh { show | flush } [ proxy ] [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n");
 	exit(-1);
 }
 
-- 
2.7.2

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

* [iproute PATCH v2 05/20] ipntable: Fix typo in help text
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (3 preceding siblings ...)
  2016-03-02 18:19       ` [iproute PATCH v2 04/20] ipneigh: add missing proxy keyword to help text Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly Phil Sutter
                         ` (14 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/ipntable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/ipntable.c b/ip/ipntable.c
index 6eb84e797b263..2763570ae34d7 100644
--- a/ip/ipntable.c
+++ b/ip/ipntable.c
@@ -52,7 +52,7 @@ static void usage(void)
 
 		"PARMS := [ base_reachable MSEC ] [ retrans MSEC ] [ gc_stale MSEC ]\n"
 		"         [ delay_probe MSEC ] [ queue LEN ]\n"
-		"         [ app_probs VAL ] [ ucast_probes VAL ] [ mcast_probes VAL ]\n"
+		"         [ app_probes VAL ] [ ucast_probes VAL ] [ mcast_probes VAL ]\n"
 		"         [ anycast_delay MSEC ] [ proxy_delay MSEC ] [ proxy_queue LEN ]\n"
 		"         [ locktime MSEC ]\n"
 		);
-- 
2.7.2

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

* [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (4 preceding siblings ...)
  2016-03-02 18:19       ` [iproute PATCH v2 05/20] ipntable: Fix typo in " Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-03 14:21         ` Jamal Hadi Salim
  2016-03-02 18:19       ` [iproute PATCH v2 07/20] iprule: add missing nat keyword to help text Phil Sutter
                         ` (13 subsequent siblings)
  19 siblings, 1 reply; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

This is a bit pedantic, but brackets ([]) show optional values and since
TYPE must not become empty, they're not suited to surround the type
keyword choices. Use curly braces instead.

Also add some missing whitespace to the parameter list above.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/iproute.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ip/iproute.c b/ip/iproute.c
index 051fc12d197eb..5b954478cfb7f 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -82,13 +82,13 @@ static void usage(void)
 	fprintf(stderr, "FAMILY := [ inet | inet6 | ipx | dnet | mpls | bridge | link ]\n");
 	fprintf(stderr, "OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ] [ as [ to ] ADDRESS ]\n");
 	fprintf(stderr, "           [ rtt TIME ] [ rttvar TIME ] [ reordering NUMBER ]\n");
-	fprintf(stderr, "           [ window NUMBER] [ cwnd NUMBER ] [ initcwnd NUMBER ]\n");
+	fprintf(stderr, "           [ window NUMBER ] [ cwnd NUMBER ] [ initcwnd NUMBER ]\n");
 	fprintf(stderr, "           [ ssthresh NUMBER ] [ realms REALM ] [ src ADDRESS ]\n");
 	fprintf(stderr, "           [ rto_min TIME ] [ hoplimit NUMBER ] [ initrwnd NUMBER ]\n");
 	fprintf(stderr, "           [ features FEATURES ] [ quickack BOOL ] [ congctl NAME ]\n");
 	fprintf(stderr, "           [ pref PREF ] [ expires TIME ]\n");
-	fprintf(stderr, "TYPE := [ unicast | local | broadcast | multicast | throw |\n");
-	fprintf(stderr, "          unreachable | prohibit | blackhole | nat ]\n");
+	fprintf(stderr, "TYPE := { unicast | local | broadcast | multicast | throw |\n");
+	fprintf(stderr, "          unreachable | prohibit | blackhole | nat }\n");
 	fprintf(stderr, "TABLE_ID := [ local | main | default | all | NUMBER ]\n");
 	fprintf(stderr, "SCOPE := [ host | link | global | NUMBER ]\n");
 	fprintf(stderr, "NHFLAGS := [ onlink | pervasive ]\n");
-- 
2.7.2

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

* [iproute PATCH v2 07/20] iprule: add missing nat keyword to help text
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (5 preceding siblings ...)
  2016-03-02 18:19       ` [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 08/20] man: ip-address.8: Minor syntax fixes Phil Sutter
                         ` (12 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/iprule.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ip/iprule.c b/ip/iprule.c
index 33b71976e7b5c..7e3b38b64c6e1 100644
--- a/ip/iprule.c
+++ b/ip/iprule.c
@@ -39,6 +39,7 @@ static void usage(void)
 	fprintf(stderr, "SELECTOR := [ not ] [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK[/MASK] ]\n");
 	fprintf(stderr, "            [ iif STRING ] [ oif STRING ] [ pref NUMBER ]\n");
 	fprintf(stderr, "ACTION := [ table TABLE_ID ]\n");
+	fprintf(stderr, "          [ nat ADDRESS ]\n");
 	fprintf(stderr, "          [ realms [SRCREALM/]DSTREALM ]\n");
 	fprintf(stderr, "          [ goto NUMBER ]\n");
 	fprintf(stderr, "          SUPPRESSOR\n");
-- 
2.7.2

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

* [iproute PATCH v2 08/20] man: ip-address.8: Minor syntax fixes
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (6 preceding siblings ...)
  2016-03-02 18:19       ` [iproute PATCH v2 07/20] iprule: add missing nat keyword to help text Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 09/20] man: ip-link.8: minor font fix Phil Sutter
                         ` (11 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Clarify that the optional '-' prefix of the 'tentative', 'deprecated'
and 'dadfailed' keywords has to be put right in front of them, no
whitespace is allowed in between.

In addition to that, clarify that it is valid to pass both 'valid_lft'
and 'preferred_lft' at the same time to 'ip address'.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-address.8.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/man/man8/ip-address.8.in b/man/man8/ip-address.8.in
index 159d9065f0c9b..ff3fe0b96b02a 100644
--- a/man/man8/ip-address.8.in
+++ b/man/man8/ip-address.8.in
@@ -58,9 +58,9 @@ ip-address \- protocol address management
 
 .ti -8
 .IR FLAG " := "
-.RB "[ " permanent " | " dynamic " | " secondary " | " primary " | \
-[ - ] " tentative " | [ - ] " deprecated " | [ - ] " dadfailed " | "\
-temporary " | " CONFFLAG-LIST " ]"
+.RB "[ " permanent " | " dynamic " | " secondary " | " primary " |"
+.RB [ - ] tentative " | [" - ] deprecated " | [" - ] dadfailed " |"
+.BR temporary " | " CONFFLAG-LIST " ]"
 
 .ti -8
 .IR CONFFLAG-LIST " := [ "  CONFFLAG-LIST " ] " CONFFLAG
@@ -72,7 +72,7 @@ temporary " | " CONFFLAG-LIST " ]"
 .ti -8
 .IR LIFETIME " := [ "
 .BI valid_lft " LFT"
-.RB "| " preferred_lft
+.RB "] [ " preferred_lft
 .IR  LFT " ]"
 
 .ti -8
-- 
2.7.2

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

* [iproute PATCH v2 09/20] man: ip-link.8: minor font fix
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (7 preceding siblings ...)
  2016-03-02 18:19       ` [iproute PATCH v2 08/20] man: ip-address.8: Minor syntax fixes Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 10/20] man: ip-link.8: Fix and improve synopsis Phil Sutter
                         ` (10 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

We commonly use bold font for terminals and italic for non-terminals.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-link.8.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index 221831e52bc9a..2376f1653a8f2 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -49,7 +49,7 @@ ip-link \- network device configuration
 .RB "[ " numrxqueues
 .IR QUEUE_COUNT " ]"
 .br
-.BR type " TYPE"
+.BI type " TYPE"
 .RI "[ " ARGS " ]"
 
 .ti -8
-- 
2.7.2

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

* [iproute PATCH v2 10/20] man: ip-link.8: Fix and improve synopsis
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (8 preceding siblings ...)
  2016-03-02 18:19       ` [iproute PATCH v2 09/20] man: ip-link.8: minor font fix Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-02 18:19       ` [iproute PATCH v2 11/20] man: ip-neighbour: Fix for missing NUD_STATE description Phil Sutter
                         ` (9 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Reflect that it is possible to pass multiple parameters at the same
time, also use the same trick the help text uses to emphasize vf
specific parameters.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-link.8.in | 100 +++++++++++++++++++++++++++-----------------------
 1 file changed, 55 insertions(+), 45 deletions(-)

diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index 2376f1653a8f2..e402fdd033165 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -92,79 +92,89 @@ ip-link \- network device configuration
 .BR "ip link set " {
 .IR DEVICE " | "
 .BI "group " GROUP
-.RB "} { " up " | " down " | " arp " { " on " | " off " } |"
+.RB "} [ { " up " | " down " } ]"
 .br
-.BR promisc " { " on " | " off " } |"
+.RB "[ " arp " { " on " | " off " } ]"
 .br
-.BR allmulticast " { " on " | " off " } |"
+.RB "[ " dynamic " { " on " | " off " } ]"
 .br
-.BR dynamic " { " on " | " off " } |"
+.RB "[ " multicast " { " on " | " off " } ]"
 .br
-.BR multicast " { " on " | " off " } |"
+.RB "[ " allmulticast " { " on " | " off " } ]"
 .br
-.BR protodown " { " on " | " off " } |"
+.RB "[ " promisc " { " on " | " off " } ]"
 .br
-.B  txqueuelen
-.IR PACKETS " |"
+.RB "[ " protodown " { " on " | " off " } ]"
 .br
-.B  name
-.IR NEWNAME " |"
+.RB "[ " trailers " { " on " | " off " } ]"
 .br
-.B  address
-.IR LLADDR " |"
-.B  broadcast
-.IR LLADDR " |"
+.RB "[ " txqueuelen
+.IR PACKETS " ]"
+.br
+.RB "[ " name
+.IR NEWNAME " ]"
+.br
+.RB "[ " address
+.IR LLADDR " ]"
 .br
-.B  mtu
-.IR MTU " |"
+.RB "[ " broadcast
+.IR LLADDR " ]"
+.br
+.RB "[ " mtu
+.IR MTU " ]"
 .br
-.B  netns
-.IR PID " |"
+.RB "[ " netns " {"
+.IR PID " | " NETNSNAME " } ]"
 .br
-.B  netns
-.IR NETNSNAME " |"
+.RB "[ " link-netnsid
+.IR ID " ]"
 .br
-.B alias
-.IR NAME  " |"
+.RB "[ " alias
+.IR NAME  " ]"
 .br
-.B vf
+.RB "[ " vf
 .IR NUM " ["
 .B  mac
-.IR LLADDR " ] ["
-.B vlan
+.IR LLADDR " ]"
+.br
+.in +9
+.RB "[ " vlan
 .IR VLANID " [ "
 .B qos
-.IR VLAN-QOS " ] ] ["
-.B rate
-.IR TXRATE " ] ["
-.B max_tx_rate
-.IR TXRATE " ] ["
-.B min_tx_rate
-.IR TXRATE " ] ["
-.B spoofchk { on | off } ] [
-.B state { auto | enable | disable} ] [
-.B trust { on | off }
-] |
+.IR VLAN-QOS " ] ]"
 .br
-.B master
-.IR DEVICE " |"
+.RB "[ " rate
+.IR TXRATE " ]"
+.br
+.RB "[ " max_tx_rate
+.IR TXRATE " ]"
+.br
+.RB "[ " min_tx_rate
+.IR TXRATE " ]"
 .br
-.B nomaster " |"
+.RB "[ " spoofchk " { " on " | " off " } ]"
 .br
-.B addrgenmode { eui64 | none | stable_secret | random }
+.RB "[ " state " { " auto " | " enable " | " disable " } ]"
 .br
-.B link-netnsid ID
-.BR " }"
+.RB "[ " trust " { " on " | " off " } ] ]"
+.br
+.in -9
+.RB "[ " master
+.IR DEVICE " ]"
+.br
+.RB "[ " nomaster " ]"
+.br
+.RB "[ " addrgenmode " { " eui64 " | " none " | " stable_secret " | " random " } ]"
 
 
 .ti -8
 .B ip link show
 .RI "[ " DEVICE " | "
 .B group
-.IR GROUP " | "
-.BR up " | "
+.IR GROUP " ] ["
+.BR up " ] ["
 .B master
-.IR DEVICE " | "
+.IR DEVICE " ] ["
 .B type
 .IR TYPE " ]"
 
-- 
2.7.2

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

* [iproute PATCH v2 11/20] man: ip-neighbour: Fix for missing NUD_STATE description
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (9 preceding siblings ...)
  2016-03-02 18:19       ` [iproute PATCH v2 10/20] man: ip-link.8: Fix and improve synopsis Phil Sutter
@ 2016-03-02 18:19       ` Phil Sutter
  2016-03-02 18:20       ` [iproute PATCH v2 12/20] man: ip-netns.8: Clarify synopsis a bit Phil Sutter
                         ` (8 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:19 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-neighbour.8 | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/man/man8/ip-neighbour.8 b/man/man8/ip-neighbour.8
index c9b0256e12207..19c6d9d8bf605 100644
--- a/man/man8/ip-neighbour.8
+++ b/man/man8/ip-neighbour.8
@@ -18,7 +18,9 @@ ip-neighbour \- neighbour/arp tables management.
 .IR ADDR " [ "
 .B  lladdr
 .IR LLADDR " ] [ "
-.BR nud " { " permanent " | " noarp " | " stale " | " reachable " } ] | " proxy
+.B nud
+.IR STATE " ] |"
+.B proxy
 .IR ADDR " } [ "
 .B  dev
 .IR DEV " ]"
@@ -31,6 +33,9 @@ ip-neighbour \- neighbour/arp tables management.
 .B  nud
 .IR STATE " ]"
 
+.ti -8
+.IR STATE " := {"
+.BR permanent " | " noarp " | " stale " | " reachable " }"
 
 .SH DESCRIPTION
 The
@@ -75,7 +80,7 @@ can also be
 .BR "null" .
 
 .TP
-.BI nud " NUD_STATE"
+.BI nud " STATE"
 the state of the neighbour entry.
 .B nud
 is an abbreviation for 'Neighbour Unreachability Detection'.
@@ -147,7 +152,7 @@ list neighbour proxies.
 only list neighbours which are not currently in use.
 
 .TP
-.BI nud " NUD_STATE"
+.BI nud " STATE"
 only list neighbour entries in this state.
 .I NUD_STATE
 takes values listed below or the special value
-- 
2.7.2

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

* [iproute PATCH v2 12/20] man: ip-netns.8: Clarify synopsis a bit
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (10 preceding siblings ...)
  2016-03-02 18:19       ` [iproute PATCH v2 11/20] man: ip-neighbour: Fix for missing NUD_STATE description Phil Sutter
@ 2016-03-02 18:20       ` Phil Sutter
  2016-03-02 18:20       ` [iproute PATCH v2 13/20] man: ip-ntable.8: Review synopsis section Phil Sutter
                         ` (7 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:20 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Use brackets to show that 'ip netns' defaults to action 'list', drop
superfluous curly braces around 'set' action keyword.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-netns.8 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/man8/ip-netns.8 b/man/man8/ip-netns.8
index c9b0fbc2c163d..c5310e24ed40b 100644
--- a/man/man8/ip-netns.8
+++ b/man/man8/ip-netns.8
@@ -13,7 +13,7 @@ ip-netns \- process network namespace management
 .BR help " }"
 .sp
 .ti -8
-.BR "ip netns" " { " list " } "
+.BR "ip netns" " [ " list " ]"
 
 .ti -8
 .B ip netns add
@@ -24,7 +24,7 @@ ip-netns \- process network namespace management
 .RI "[ " NETNSNAME " ]"
 
 .ti -8
-.BR "ip netns" " { " set " } "
+.B ip netns set
 .I NETNSNAME NETNSID
 
 .ti -8
-- 
2.7.2

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

* [iproute PATCH v2 13/20] man: ip-ntable.8: Review synopsis section
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (11 preceding siblings ...)
  2016-03-02 18:20       ` [iproute PATCH v2 12/20] man: ip-netns.8: Clarify synopsis a bit Phil Sutter
@ 2016-03-02 18:20       ` Phil Sutter
  2016-03-02 18:20       ` [iproute PATCH v2 14/20] man: ip-rule.8: " Phil Sutter
                         ` (6 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:20 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

The first line contained a c'n'p error, incorrectly listing 'ip address'
syntax. Since PARAMS is used just once and there are not many other
parameters to 'ip ntable change', state them inline and in addition to
that clarify the possibility to pass multiple parameters at once.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-ntable.8 | 39 ++++++++++++++++++++++-----------------
 1 file changed, 22 insertions(+), 17 deletions(-)

diff --git a/man/man8/ip-ntable.8 b/man/man8/ip-ntable.8
index 462e5896b6482..4f0f2e548a21e 100644
--- a/man/man8/ip-ntable.8
+++ b/man/man8/ip-ntable.8
@@ -8,7 +8,7 @@ ip-ntable - neighbour table configuration
 .ti -8
 .B ip
 .RI "[ " OPTIONS " ]"
-.B address
+.B ntable
 .RI " { " COMMAND " | "
 .BR help " }"
 .sp
@@ -17,34 +17,39 @@ ip-ntable - neighbour table configuration
 .BR "ip ntable change name"
 .IR NAME " [ "
 .B dev
-.IR DEV " ] " PARMS
-
-.ti -8
-.IR PARMS " := { "
+.IR DEV " ] ["
 .B thresh1
-.IR VAL " | "
+.IR VAL " ] ["
 .B thresh2
-.IR VAL " | "
+.IR VAL " ] ["
 .B thresh3
-.IR VAL " | "
+.IR VAL " ] ["
 .B gc_int
-.IR MSEC " | "
+.IR MSEC " ] ["
 .B base_reachable
-.IR MSEC " | "
+.IR MSEC " ] ["
 .B retrans
-.IR MSEC " | " "gc_stale MSEC " " | "
+.IR MSEC " ] ["
+.B gc_stale
+.IR MSEC " ] ["
 .B delay_probe
-.IR MSEC " | " "queue LEN " " | "
+.IR MSEC " ] ["
+.B queue
+.IR LEN " ] ["
 .B app_probs
-.IR VAL " | "
+.IR VAL " ] ["
 .B ucast_probes
-.IR VAL " | " "mcast_probes VAL " " | "
+.IR VAL " ] ["
+.B mcast_probes
+.IR VAL " ] ["
 .B anycast_delay
-.IR MSEC " | "
+.IR MSEC " ] ["
 .B proxy_delay
-.IR MSEC " | " "proxy_queue LEN " " | "
+.IR MSEC " ] ["
+.B proxy_queue
+.IR LEN " ] ["
 .B locktime
-.IR MSEC " }"
+.IR MSEC " ]"
 
 .ti -8
 .BR "ip ntable show" " [ "
-- 
2.7.2

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

* [iproute PATCH v2 14/20] man: ip-rule.8: Review synopsis section
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (12 preceding siblings ...)
  2016-03-02 18:20       ` [iproute PATCH v2 13/20] man: ip-ntable.8: Review synopsis section Phil Sutter
@ 2016-03-02 18:20       ` Phil Sutter
  2016-03-02 18:20       ` [iproute PATCH v2 15/20] man: ip-token.8: " Phil Sutter
                         ` (5 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:20 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Clarify that 'ip rule' defaults to action 'list', that 'flush' and
'save' actions don't accept additional parameters, add missing 'not' and
'goto' keywords and finally fix fonts used in 'fwmark' and 'realms'
parameters.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-rule.8 | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/man/man8/ip-rule.8 b/man/man8/ip-rule.8
index b7008c6ab13d7..e9fbb3cf1a62d 100644
--- a/man/man8/ip-rule.8
+++ b/man/man8/ip-rule.8
@@ -9,20 +9,26 @@ ip-rule \- routing policy database management
 .B ip
 .RI "[ " OPTIONS " ]"
 .B rule
-.RI " { " COMMAND " | "
+.RI "{ " COMMAND " | "
 .BR help " }"
 .sp
 
 .ti -8
 .B  ip rule
-.RB " [ " list " | " add " | " del " | " flush " | " save " ]"
+.RB "[ " list " ]"
+
+.ti -8
+.B  ip rule
+.RB "{ " add " | " del " }"
 .I  SELECTOR ACTION
 
 .ti -8
-.B  ip rule  " restore "
+.B ip rule
+.RB "{ " flush " | " save " | " restore " }"
 
 .ti -8
 .IR SELECTOR " := [ "
+.BR not " ] ["
 .B  from
 .IR PREFIX " ] [ "
 .B  to
@@ -30,7 +36,7 @@ ip-rule \- routing policy database management
 .B  tos
 .IR TOS " ] [ "
 .B  fwmark
-.IR FWMARK[/MASK] " ] [ "
+.IR FWMARK\fR[\fB/\fIMASK "] ] [ "
 .B  iif
 .IR STRING " ] [ "
 .B  oif
@@ -45,8 +51,9 @@ ip-rule \- routing policy database management
 .B  nat
 .IR ADDRESS " ] [ "
 .B realms
-.RI "[" SRCREALM "/]" DSTREALM " ]"
-.I  SUPPRESSOR
+.RI "[" SRCREALM "\fB/\fR]" DSTREALM " ] ["
+.B goto
+.IR NUMBER " ] " SUPPRESSOR
 
 .ti -8
 .IR SUPPRESSOR " := [ "
-- 
2.7.2

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

* [iproute PATCH v2 15/20] man: ip-token.8: Review synopsis section
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (13 preceding siblings ...)
  2016-03-02 18:20       ` [iproute PATCH v2 14/20] man: ip-rule.8: " Phil Sutter
@ 2016-03-02 18:20       ` Phil Sutter
  2016-03-02 18:20       ` [iproute PATCH v2 16/20] man: ip-tunnel.8: Document missing 6rd action Phil Sutter
                         ` (4 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:20 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Drop unnecessary curly braces around single action keywords, point out
that 'dev' parameter to 'ip token get' is optional and clarify that 'ip
token' defaults to 'list' action.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-token.8 | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/man/man8/ip-token.8 b/man/man8/ip-token.8
index 35a3d1e3e45bf..260f366af196f 100644
--- a/man/man8/ip-token.8
+++ b/man/man8/ip-token.8
@@ -7,23 +7,23 @@ ip-token \- tokenized interface identifier support
 .in +8
 .ti -8
 .B ip token
-.RI " { " COMMAND " | "
+.RI "{ " COMMAND " | "
 .BR help " }"
 .sp
 
 .ti -8
-.BR "ip token" " { " set " } "
+.B ip token set
 .IR TOKEN
 .B dev
 .IR DEV
 
 .ti -8
-.BR "ip token" " { " get " } "
-.B dev
-.IR DEV
+.B ip token get
+.RB "[ " dev
+.IR DEV " ]"
 
 .ti -8
-.BR "ip token" " { " list " }"
+.BR "ip token" " [ " list " ]"
 
 .SH "DESCRIPTION"
 IPv6 tokenized interface identifier support is used for assigning well-known
-- 
2.7.2

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

* [iproute PATCH v2 16/20] man: ip-tunnel.8: Document missing 6rd action
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (14 preceding siblings ...)
  2016-03-02 18:20       ` [iproute PATCH v2 15/20] man: ip-token.8: " Phil Sutter
@ 2016-03-02 18:20       ` Phil Sutter
  2016-03-02 18:20       ` [iproute PATCH v2 17/20] man: ip-xfrm.8: Document missing parameters Phil Sutter
                         ` (3 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:20 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Also drop the non-terminal 'TIME' description as it is not referenced
anywhere.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-tunnel.8 | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/man/man8/ip-tunnel.8 b/man/man8/ip-tunnel.8
index 8b746cb0f52b8..4938c7405ce85 100644
--- a/man/man8/ip-tunnel.8
+++ b/man/man8/ip-tunnel.8
@@ -11,7 +11,7 @@ ip-tunnel - tunnel configuration
 .ti -8
 .BR "ip "
 .RI "[ " OPTIONS " ]"
-.BR "tunnel" " { " add " | " change " | " del " | " show " | " prl " }"
+.BR "tunnel" " { " add " | " change " | " del " | " show " | " prl " | " 6rd " }"
 .RI "[ " NAME " ]"
 .br
 .RB "[ " mode
@@ -42,6 +42,12 @@ ip-tunnel - tunnel configuration
 .B prl-delete
 .IR ADDR " ]"
 .br
+.RB "[ " 6rd-prefix
+.IR ADDR " ] ["
+.B 6rd-relay_prefix
+.IR ADDR " ] [
+.BR 6rd-reset " ]"
+.br
 .RB "[ [" no "]" pmtudisc " ]"
 .RB "[ " dev
 .IR PHYS_DEV " ]"
@@ -75,9 +81,6 @@ ip-tunnel - tunnel configuration
 .ti -8
 .IR KEY " := { " DOTTED_QUAD " | " NUMBER " }"
 
-.ti -8
-.IR TIME " := " NUMBER "[s|ms]"
-
 .SH DESCRIPTION
 .B tunnel
 objects are tunnels, encapsulating packets in IP packets and then
-- 
2.7.2

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

* [iproute PATCH v2 17/20] man: ip-xfrm.8: Document missing parameters
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (15 preceding siblings ...)
  2016-03-02 18:20       ` [iproute PATCH v2 16/20] man: ip-tunnel.8: Document missing 6rd action Phil Sutter
@ 2016-03-02 18:20       ` Phil Sutter
  2016-03-02 18:20       ` [iproute PATCH v2 18/20] man: ip.8: Add missing flags and token subcommand description Phil Sutter
                         ` (2 subsequent siblings)
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:20 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Namely, 'extra-flag' of 'ip xfrm state' and 'flag' of 'ip xfrm policy'.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-xfrm.8 | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/man/man8/ip-xfrm.8 b/man/man8/ip-xfrm.8
index dae0728811b2e..11f710470377f 100644
--- a/man/man8/ip-xfrm.8
+++ b/man/man8/ip-xfrm.8
@@ -57,6 +57,8 @@ ip-xfrm \- transform configuration
 .IR ADDR "[/" PLEN "] ]"
 .RB "[ " ctx
 .IR CTX " ]"
+.RB "[ " extra-flag
+.IR EXTRA-FLAG-LIST " ]"
 
 .ti -8
 .B "ip xfrm state allocspi"
@@ -196,6 +198,13 @@ ip-xfrm \- transform configuration
 .IR SPORT " " DPORT " " OADDR
 
 .ti -8
+.IR EXTRA-FLAG-LIST " := [ " EXTRA-FLAG-LIST " ] " EXTRA-FLAG
+
+.ti -8
+.IR EXTRA-FLAG " := "
+.B dont-encap-dscp
+
+.ti -8
 .BR "ip xfrm policy" " { " add " | " update " }"
 .I SELECTOR
 .B dir
@@ -247,6 +256,8 @@ ip-xfrm \- transform configuration
 .IR ACTION " ]"
 .RB "[ " priority
 .IR PRIORITY " ]"
+.RB "[ " flag
+.IR FLAG-LIST "]"
 
 .ti -8
 .B "ip xfrm policy flush"
-- 
2.7.2

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

* [iproute PATCH v2 18/20] man: ip.8: Add missing flags and token subcommand description
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (16 preceding siblings ...)
  2016-03-02 18:20       ` [iproute PATCH v2 17/20] man: ip-xfrm.8: Document missing parameters Phil Sutter
@ 2016-03-02 18:20       ` Phil Sutter
  2016-03-02 18:20       ` [iproute PATCH v2 19/20] man: ip-l2tp.8: Fix BNF syntax Phil Sutter
  2016-03-02 18:20       ` [iproute PATCH v2 20/20] man: ip-*.8: drop any reference to generic ip options Phil Sutter
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:20 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip.8 | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/man/man8/ip.8 b/man/man8/ip.8
index b1f6907367275..aa2bc68c81ab6 100644
--- a/man/man8/ip.8
+++ b/man/man8/ip.8
@@ -21,7 +21,7 @@ ip \- show / manipulate routing, devices, policy routing and tunnels
 .IR OBJECT " := { "
 .BR link " | " address " | " addrlabel " | " route " | " rule " | " neigh " | "\
  ntable " | " tunnel " | " tuntap " | " maddress " | "  mroute " | " mrule " | "\
- monitor " | " xfrm " | " netns " | "  l2tp " | "  tcp_metrics " }"
+ monitor " | " xfrm " | " netns " | "  l2tp " | "  tcp_metrics " | " token " }"
 .sp
 
 .ti -8
@@ -29,10 +29,22 @@ ip \- show / manipulate routing, devices, policy routing and tunnels
 \fB\-V\fR[\fIersion\fR] |
 \fB\-h\fR[\fIuman-readable\fR] |
 \fB\-s\fR[\fItatistics\fR] |
+\fB\-d\fR[\fIetails\fR] |
 \fB\-r\fR[\fIesolve\fR] |
+\fB\-iec\fR |
 \fB\-f\fR[\fIamily\fR] {
 .BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
+\fB-4\fR |
+\fB-6\fR |
+\fB-I\fR |
+\fB-D\fR |
+\fB-B\fR |
+\fB-0\fR |
+\fB-l\fR[\fIoops\fR] { \fBmaximum-addr-flush-attempts\fR } |
 \fB\-o\fR[\fIneline\fR] |
+\fB\-rc\fR[\fIvbuf\fR] [\fBsize\fR] |
+\fB\-t\fR[\fIimestamp\fR] |
+\fB\-ts\fR[\fIhort\fR] |
 \fB\-n\fR[\fIetns\fR] name |
 \fB\-a\fR[\fIll\fR] |
 \fB\-c\fR[\fIolor\fR] }
@@ -179,6 +191,16 @@ Use color output.
 .BR "\-t" , " \-timestamp"
 display current time when using monitor option.
 
+.TP
+.BR "\-ts" , " \-tshort"
+Like
+.BR \-timestamp ,
+but use shorter format.
+
+.TP
+.BR "\-rc" , " \-rcvbuf" <SIZE>
+Set the netlink socket receive buffer size, defaults to 1MB.
+
 .SH IP - COMMAND SYNTAX
 
 .SS
@@ -241,6 +263,10 @@ display current time when using monitor option.
 - manage TCP Metrics
 
 .TP
+.B token
+- manage tokenized interface identifiers.
+
+.TP
 .B tunnel
 - tunnel over IP.
 
@@ -305,6 +331,7 @@ was written by Alexey N. Kuznetsov and added in Linux 2.2.
 .BR ip-route (8),
 .BR ip-rule (8),
 .BR ip-tcp_metrics (8),
+.BR ip-token (8),
 .BR ip-tunnel (8),
 .BR ip-xfrm (8)
 .br
-- 
2.7.2

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

* [iproute PATCH v2 19/20] man: ip-l2tp.8: Fix BNF syntax
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (17 preceding siblings ...)
  2016-03-02 18:20       ` [iproute PATCH v2 18/20] man: ip.8: Add missing flags and token subcommand description Phil Sutter
@ 2016-03-02 18:20       ` Phil Sutter
  2016-03-02 18:20       ` [iproute PATCH v2 20/20] man: ip-*.8: drop any reference to generic ip options Phil Sutter
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:20 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

The 'ADDR' part of 'local' and 'remote' parameters is not optional, but
may also consist of the word 'any'. While at it, add missing whitespace
and fix fonts.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-l2tp.8 | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

diff --git a/man/man8/ip-l2tp.8 b/man/man8/ip-l2tp.8
index 1738035f2400c..5b7041f93fc3d 100644
--- a/man/man8/ip-l2tp.8
+++ b/man/man8/ip-l2tp.8
@@ -15,10 +15,7 @@ ip-l2tp - L2TPv3 static unmanaged tunnel configuration
 .ti -8
 .BR "ip l2tp add tunnel"
 .br
-.B remote
-.RI "[ " ADDR " ]"
-.B local
-.RI "[ " ADDR " ]"
+.BI remote " ADDR " local " ADDR "
 .br
 .B tunnel_id
 .IR ID
@@ -73,24 +70,21 @@ ip-l2tp - L2TPv3 static unmanaged tunnel configuration
 .IR ID
 .br
 .ti -8
-.BR "ip l2tp show tunnel"
-.B "[" tunnel_id
-.IR ID
-.B "]"
+.BR "ip l2tp show tunnel" " [ " tunnel_id
+.IR ID " ]"
 .br
 .ti -8
-.BR "ip l2tp show session"
-.B "[" tunnel_id
-.IR ID
-.B "] [" session_id
-.IR ID
-.B "]"
+.BR "ip l2tp show session" " [ " tunnel_id
+.IR ID .B " ] ["
+.B session_id
+.IR ID " ]"
 .br
 .ti -8
 .IR NAME " := "
 .IR STRING
 .ti -8
-.IR ADDR " := { " IP_ADDRESS " }"
+.IR ADDR " := { " IP_ADDRESS " |"
+.BR any " }"
 .ti -8
 .IR PORT " := { " NUMBER " }"
 .ti -8
-- 
2.7.2

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

* [iproute PATCH v2 20/20] man: ip-*.8: drop any reference to generic ip options
  2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
                         ` (18 preceding siblings ...)
  2016-03-02 18:20       ` [iproute PATCH v2 19/20] man: ip-l2tp.8: Fix BNF syntax Phil Sutter
@ 2016-03-02 18:20       ` Phil Sutter
  19 siblings, 0 replies; 47+ messages in thread
From: Phil Sutter @ 2016-03-02 18:20 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Listing generic 'ip' options in subcommand man pages is redundant and
error-prone, as they won't be kept in sync anyway. Since many other man
pages don't list them either, drop references to them in the remaining
ones.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 man/man8/ip-addrlabel.8 | 14 +-------------
 man/man8/ip-link.8.in   | 15 +--------------
 man/man8/ip-monitor.8   |  4 +---
 man/man8/ip-mroute.8    |  2 +-
 4 files changed, 4 insertions(+), 31 deletions(-)

diff --git a/man/man8/ip-addrlabel.8 b/man/man8/ip-addrlabel.8
index 51ef5727a0db1..233d6067ab407 100644
--- a/man/man8/ip-addrlabel.8
+++ b/man/man8/ip-addrlabel.8
@@ -6,21 +6,9 @@ ip-addrlabel \- protocol address label management
 .ad l
 .in +8
 .ti -8
-.B ip
-.RI "[ " OPTIONS " ]"
-.B addrlabel
+.B ip addrlabel
 .RI " { " COMMAND " | "
 .BR help " }"
-.sp
-
-.ti -8
-.IR OPTIONS " := { "
-\fB\-V\fR[\fIersion\fR] |
-\fB\-s\fR[\fItatistics\fR] |
-\fB\-r\fR[\fIesolve\fR] |
-\fB\-f\fR[\fIamily\fR] {
-.BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
-\fB\-o\fR[\fIneline\fR] }
 
 .ti -8
 .BR "ip addrlabel" " { " add " | " del " } " prefix
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index e402fdd033165..c6a9c862dfda2 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -6,25 +6,12 @@ ip-link \- network device configuration
 .ad l
 .in +8
 .ti -8
-.B ip
-.RI "[ " OPTIONS " ]"
-.B link
+.B ip link
 .RI  " { " COMMAND " | "
 .BR help " }"
 .sp
 
 .ti -8
-.IR OPTIONS " := { "
-\fB\-V\fR[\fIersion\fR] |
-\fB\-h\fR[\fIuman-readable\fR] |
-\fB\-s\fR[\fItatistics\fR] |
-\fB\-r\fR[\fIesolve\fR] |
-\fB\-f\fR[\fIamily\fR] {
-.BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
-\fB\-o\fR[\fIneline\fR] |
-\fB\-br\fR[\fIief\fR] }
-
-.ti -8
 .BI "ip link add"
 .RB "[ " link
 .IR DEVICE " ]"
diff --git a/man/man8/ip-monitor.8 b/man/man8/ip-monitor.8
index d2bd381a8c32e..86f8f9885fefe 100644
--- a/man/man8/ip-monitor.8
+++ b/man/man8/ip-monitor.8
@@ -6,9 +6,7 @@ ip-monitor, rtmon \- state monitoring
 .ad l
 .in +8
 .ti -8
-.BR "ip " " [ "
-.IR ip-OPTIONS " ]"
-.BR  "monitor" " [ " all " |"
+.BR "ip monitor" " [ " all " |"
 .IR OBJECT-LIST " ] ["
 .BI file " FILENAME "
 ] [
diff --git a/man/man8/ip-mroute.8 b/man/man8/ip-mroute.8
index e89b6b2d2cc56..b64e30d33d412 100644
--- a/man/man8/ip-mroute.8
+++ b/man/man8/ip-mroute.8
@@ -6,7 +6,7 @@ ip-mroute \- multicast routing cache management
 .ad l
 .in +8
 .ti -8
-.BR "ip " " [ ip-OPTIONS ] " "mroute show" " [ [ "
+.BR "ip mroute show" " [ [ "
 .BR " to " " ] "
 .IR PREFIX " ] [ "
 .B  from
-- 
2.7.2

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

* Re: [iproute PATCH 00/20] Sync man pages and help texts
  2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
                   ` (19 preceding siblings ...)
  2016-02-24  8:21 ` [iproute PATCH 20/20] man: ip-*.8: drop any reference to generic ip options Phil Sutter
@ 2016-03-02 19:59 ` Stephen Hemminger
  20 siblings, 0 replies; 47+ messages in thread
From: Stephen Hemminger @ 2016-03-02 19:59 UTC (permalink / raw)
  To: Phil Sutter; +Cc: netdev

On Wed, 24 Feb 2016 09:21:13 +0100
Phil Sutter <phil@nwl.cc> wrote:

> This patch series aims at improving consistency of builtin help texts and
> related man pages (synopsis section at least). It was created by
> comparing the two and fixing up whatever occurred to be broken.
> 
> Phil Sutter (20):
>   ip: align help text with manpage
>   ipaddrlabel: Improve help text precision
>   iplink: fix help text syntax
>   ipneigh: add missing proxy keyword to help text
>   ipntable: Fix typo in help text
>   iproute: TYPE keyword is not optional, fix help text accordingly
>   iprule: add missing nat keyword to help text
>   man: ip-address.8: Minor syntax fixes
>   man: ip-link.8: minor font fix
>   man: ip-link.8: Fix and improve synopsis
>   man: ip-neighbour: Fix for missing NUD_STATE description
>   man: ip-netns.8: Clarify synopsis a bit
>   man: ip-ntable.8: Review synopsis section
>   man: ip-rule.8: Review synopsis section
>   man: ip-token.8: Review synopsis section
>   man: ip-tunnel.8: Document missing 6rd action
>   man: ip-xfrm.8: Document missing parameters
>   man: ip.8: Add missing flags and token subcommand description
>   man: ip-l2tp.8: Fix BNF syntax
>   man: ip-*.8: drop any reference to generic ip options
> 
>  ip/ip.c                  |   2 +-
>  ip/ipaddrlabel.c         |   3 +-
>  ip/iplink.c              |   9 ++--
>  ip/ipneigh.c             |   2 +-
>  ip/ipntable.c            |   2 +-
>  ip/iproute.c             |   6 +--
>  ip/iprule.c              |   1 +
>  man/man8/ip-address.8.in |   8 ++--
>  man/man8/ip-addrlabel.8  |  14 +-----
>  man/man8/ip-l2tp.8       |  24 ++++------
>  man/man8/ip-link.8.in    | 114 +++++++++++++++++++++++------------------------
>  man/man8/ip-monitor.8    |   4 +-
>  man/man8/ip-mroute.8     |   2 +-
>  man/man8/ip-neighbour.8  |  11 +++--
>  man/man8/ip-netns.8      |   4 +-
>  man/man8/ip-ntable.8     |  39 +++++++++-------
>  man/man8/ip-rule.8       |  19 +++++---
>  man/man8/ip-token.8      |  12 ++---
>  man/man8/ip-tunnel.8     |  11 +++--
>  man/man8/ip-xfrm.8       |  11 +++++
>  man/man8/ip.8            |  29 +++++++++++-
>  21 files changed, 181 insertions(+), 146 deletions(-)

Applied

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

* Re: [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly
  2016-03-02 18:19       ` [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly Phil Sutter
@ 2016-03-03 14:21         ` Jamal Hadi Salim
  2016-03-03 15:05           ` Phil Sutter
  0 siblings, 1 reply; 47+ messages in thread
From: Jamal Hadi Salim @ 2016-03-03 14:21 UTC (permalink / raw)
  To: Phil Sutter, Stephen Hemminger; +Cc: netdev

On 16-03-02 01:19 PM, Phil Sutter wrote:
> +	fprintf(stderr, "          unreachable | prohibit | blackhole | nat }\n");

Dont think nat exists anymore...

cheers,
jamal

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

* Re: [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly
  2016-03-03 14:21         ` Jamal Hadi Salim
@ 2016-03-03 15:05           ` Phil Sutter
  2016-03-07 11:23             ` Jamal Hadi Salim
  0 siblings, 1 reply; 47+ messages in thread
From: Phil Sutter @ 2016-03-03 15:05 UTC (permalink / raw)
  To: Jamal Hadi Salim; +Cc: Stephen Hemminger, netdev

On Thu, Mar 03, 2016 at 09:21:55AM -0500, Jamal Hadi Salim wrote:
> On 16-03-02 01:19 PM, Phil Sutter wrote:
> > +	fprintf(stderr, "          unreachable | prohibit | blackhole | nat }\n");
> 
> Dont think nat exists anymore...

But iproute2 seems to still support it? At least it's listed in
rtnl_rtntype_a2n().

The entry for RTN_NAT in net/ipv4/fib_semantics.c though looks like just
a stub. But at least it hasn't changed since the beginning of Git.
According to ip-route.8 it's indeed non-functional.

I only concerned help text and man page consistency, and since the man
page lists it (with a useful hint about it's state), the help text
should contain it either. Or do you think that's misleading?

Thanks, Phil

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

* Re: [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly
  2016-03-03 15:05           ` Phil Sutter
@ 2016-03-07 11:23             ` Jamal Hadi Salim
  0 siblings, 0 replies; 47+ messages in thread
From: Jamal Hadi Salim @ 2016-03-07 11:23 UTC (permalink / raw)
  To: Phil Sutter, Stephen Hemminger, netdev

On 16-03-03 10:05 AM, Phil Sutter wrote:
> On Thu, Mar 03, 2016 at 09:21:55AM -0500, Jamal Hadi Salim wrote:
>> On 16-03-02 01:19 PM, Phil Sutter wrote:
>>> +	fprintf(stderr, "          unreachable | prohibit | blackhole | nat }\n");
>>
>> Dont think nat exists anymore...
>
> But iproute2 seems to still support it? At least it's listed in
> rtnl_rtntype_a2n().
>
> The entry for RTN_NAT in net/ipv4/fib_semantics.c though looks like just
> a stub. But at least it hasn't changed since the beginning of Git.
> According to ip-route.8 it's indeed non-functional.
>
> I only concerned help text and man page consistency, and since the man
> page lists it (with a useful hint about it's state), the help text
> should contain it either. Or do you think that's misleading?
>

Yeah it is gone. The cloud providers i know of that needed stateless
nat use tc nat.

cheers,
jamal

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

end of thread, other threads:[~2016-03-07 11:23 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-24  8:21 [iproute PATCH 00/20] Sync man pages and help texts Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 01/20] ip: align help text with manpage Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 02/20] ipaddrlabel: Improve help text precision Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 03/20] iplink: fix help text syntax Phil Sutter
2016-03-02 17:38   ` Stephen Hemminger
2016-03-02 18:19     ` [iproute PATCH v2 00/20] Sync man pages and help texts Phil Sutter
2016-03-02 18:19       ` [iproute PATCH v2 01/20] ip: align help text with manpage Phil Sutter
2016-03-02 18:19       ` [iproute PATCH v2 02/20] ipaddrlabel: Improve help text precision Phil Sutter
2016-03-02 18:19       ` [iproute PATCH v2 03/20] iplink: fix help text syntax Phil Sutter
2016-03-02 18:19       ` [iproute PATCH v2 04/20] ipneigh: add missing proxy keyword to help text Phil Sutter
2016-03-02 18:19       ` [iproute PATCH v2 05/20] ipntable: Fix typo in " Phil Sutter
2016-03-02 18:19       ` [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly Phil Sutter
2016-03-03 14:21         ` Jamal Hadi Salim
2016-03-03 15:05           ` Phil Sutter
2016-03-07 11:23             ` Jamal Hadi Salim
2016-03-02 18:19       ` [iproute PATCH v2 07/20] iprule: add missing nat keyword to help text Phil Sutter
2016-03-02 18:19       ` [iproute PATCH v2 08/20] man: ip-address.8: Minor syntax fixes Phil Sutter
2016-03-02 18:19       ` [iproute PATCH v2 09/20] man: ip-link.8: minor font fix Phil Sutter
2016-03-02 18:19       ` [iproute PATCH v2 10/20] man: ip-link.8: Fix and improve synopsis Phil Sutter
2016-03-02 18:19       ` [iproute PATCH v2 11/20] man: ip-neighbour: Fix for missing NUD_STATE description Phil Sutter
2016-03-02 18:20       ` [iproute PATCH v2 12/20] man: ip-netns.8: Clarify synopsis a bit Phil Sutter
2016-03-02 18:20       ` [iproute PATCH v2 13/20] man: ip-ntable.8: Review synopsis section Phil Sutter
2016-03-02 18:20       ` [iproute PATCH v2 14/20] man: ip-rule.8: " Phil Sutter
2016-03-02 18:20       ` [iproute PATCH v2 15/20] man: ip-token.8: " Phil Sutter
2016-03-02 18:20       ` [iproute PATCH v2 16/20] man: ip-tunnel.8: Document missing 6rd action Phil Sutter
2016-03-02 18:20       ` [iproute PATCH v2 17/20] man: ip-xfrm.8: Document missing parameters Phil Sutter
2016-03-02 18:20       ` [iproute PATCH v2 18/20] man: ip.8: Add missing flags and token subcommand description Phil Sutter
2016-03-02 18:20       ` [iproute PATCH v2 19/20] man: ip-l2tp.8: Fix BNF syntax Phil Sutter
2016-03-02 18:20       ` [iproute PATCH v2 20/20] man: ip-*.8: drop any reference to generic ip options Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 04/20] ipneigh: add missing proxy keyword to help text Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 05/20] ipntable: Fix typo in " Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 06/20] iproute: TYPE keyword is not optional, fix help text accordingly Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 07/20] iprule: add missing nat keyword to help text Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 08/20] man: ip-address.8: Minor syntax fixes Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 09/20] man: ip-link.8: minor font fix Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 10/20] man: ip-link.8: Fix and improve synopsis Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 11/20] man: ip-neighbour: Fix for missing NUD_STATE description Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 12/20] man: ip-netns.8: Clarify synopsis a bit Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 13/20] man: ip-ntable.8: Review synopsis section Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 14/20] man: ip-rule.8: " Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 15/20] man: ip-token.8: " Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 16/20] man: ip-tunnel.8: Document missing 6rd action Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 17/20] man: ip-xfrm.8: Document missing parameters Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 18/20] man: ip.8: Add missing flags and token subcommand description Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 19/20] man: ip-l2tp.8: Fix BNF syntax Phil Sutter
2016-02-24  8:21 ` [iproute PATCH 20/20] man: ip-*.8: drop any reference to generic ip options Phil Sutter
2016-03-02 19:59 ` [iproute PATCH 00/20] Sync man pages and help texts Stephen Hemminger

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