Sync man pages and help texts
Subsystems (2)
PATCH 3/20 iplink: fix help text syntax
In reply to Phil SutterGet rid of extraneous closing brackets and while here, merge the double netns parameter.
--- ip/iplink.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
ip/iplink.c +4 -5
@@ -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" );
Signature · 1 line
2.6.4
PATCH 18/20 man: ip.8: Add missing flags and token subcommand description
In reply to Phil Sutter--- man/man8/ip.8 | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-)
man/man8/ip.8 +28 -1
@@ -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
Signature · 1 line
2.6.4
PATCH 6/20 iproute: TYPE keyword is not optional, fix help text accordingly
In reply to Phil SutterThis 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.
--- ip/iproute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
ip/iproute.c +3 -3
@@ -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" );
Signature · 1 line
2.6.4
PATCH 11/20 man: ip-neighbour: Fix for missing NUD_STATE description
In reply to Phil Sutter--- man/man8/ip-neighbour.8 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
man/man8/ip-neighbour.8 +8 -3
@@ -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
Signature · 1 line
2.6.4
PATCH 20/20 man: ip-*.8: drop any reference to generic ip options
In reply to Phil SutterListing 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.
--- 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(-)
man/man8/ip-addrlabel.8 +1 -13
@@ -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
man/man8/ip-link.8.in +1 -14
@@ -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 " ]"
man/man8/ip-monitor.8 +1 -3
@@ -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 " ] [
man/man8/ip-mroute.8 +1 -1
@@ -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
Signature · 1 line
2.6.4
PATCH 17/20 man: ip-xfrm.8: Document missing parameters
In reply to Phil SutterNamely, 'extra-flag' of 'ip xfrm state' and 'flag' of 'ip xfrm policy'.
--- man/man8/ip-xfrm.8 | 11 +++++++++++ 1 file changed, 11 insertions(+)
man/man8/ip-xfrm.8 +11 -0
@@ -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"
Signature · 1 line
2.6.4
PATCH 16/20 man: ip-tunnel.8: Document missing 6rd action
In reply to Phil SutterAlso drop the non-terminal 'TIME' description as it is not referenced anywhere.
--- man/man8/ip-tunnel.8 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
man/man8/ip-tunnel.8 +7 -4
@@ -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
Signature · 1 line
2.6.4
PATCH 7/20 iprule: add missing nat keyword to help text
In reply to Phil Sutter--- ip/iprule.c | 1 + 1 file changed, 1 insertion(+)
ip/iprule.c +1 -0
@@ -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" );
Signature · 1 line
2.6.4
PATCH 14/20 man: ip-rule.8: Review synopsis section
In reply to Phil SutterClarify 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.
--- man/man8/ip-rule.8 | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-)
man/man8/ip-rule.8 +13 -6
@@ -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 " := [ "
Signature · 1 line
2.6.4
PATCH 19/20 man: ip-l2tp.8: Fix BNF syntax
In reply to Phil SutterThe '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.
--- man/man8/ip-l2tp.8 | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-)
man/man8/ip-l2tp.8 +9 -15
@@ -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
Signature · 1 line
2.6.4
PATCH 10/20 man: ip-link.8: Fix and improve synopsis
In reply to Phil SutterReflect 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.
--- man/man8/ip-link.8.in | 97 ++++++++++++++++++++++++++++----------------------- 1 file changed, 53 insertions(+), 44 deletions(-)
man/man8/ip-link.8.in +53 -44
@@ -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 " ]"
Signature · 1 line
2.6.4
PATCH 5/20 ipntable: Fix typo in help text
In reply to Phil Sutter--- ip/ipntable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ip/ipntable.c +1 -1
@@ -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" );
Signature · 1 line
2.6.4
PATCH 4/20 ipneigh: add missing proxy keyword to help text
In reply to Phil SutterAnd while we're at it, add whitespace around braces and pipe symbol.
--- ip/ipneigh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ip/ipneigh.c +1 -1
@@ -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 ); }
Signature · 1 line
2.6.4
cover Sync man pages and help texts
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(-)
Signature · 1 line
2.6.4
PATCH 2/20 ipaddrlabel: Improve help text precision
Neither 'list' nor 'flush' actions accept parameters, and with given prefix the action keyword is not optional anymore.
--- ip/ipaddrlabel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ip/ipaddrlabel.c +2 -1
@@ -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 ); }
Signature · 1 line
2.6.4
PATCH 15/20 man: ip-token.8: Review synopsis section
In reply to Phil SutterDrop 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.
--- man/man8/ip-token.8 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
man/man8/ip-token.8 +6 -6
@@ -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
Signature · 1 line
2.6.4
PATCH 12/20 man: ip-netns.8: Clarify synopsis a bit
In reply to Phil SutterUse brackets to show that 'ip netns' defaults to action 'list', drop superfluous curly braces around 'set' action keyword.
--- man/man8/ip-netns.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
man/man8/ip-netns.8 +2 -2
@@ -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
Signature · 1 line
2.6.4
PATCH 9/20 man: ip-link.8: minor font fix
In reply to Phil SutterWe commonly use bold font for terminals and italic for non-terminals.
--- man/man8/ip-link.8.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
man/man8/ip-link.8.in +1 -1
@@ -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
Signature · 1 line
2.6.4
PATCH 1/20 ip: align help text with manpage
In reply to Phil SutterAlthough 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.
--- ip/ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ip/ip.c +1 -1
@@ -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"
Signature · 1 line
2.6.4
PATCH 13/20 man: ip-ntable.8: Review synopsis section
In reply to Phil SutterThe 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.
--- man/man8/ip-ntable.8 | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-)
man/man8/ip-ntable.8 +22 -17
@@ -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" " [ "
Signature · 1 line
2.6.4
PATCH 8/20 man: ip-address.8: Minor syntax fixes
In reply to Phil SutterClarify 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'.
--- man/man8/ip-address.8.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
man/man8/ip-address.8.in +4 -4
@@ -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
Signature · 1 line
2.6.4
Re: [iproute PATCH 03/20] iplink: fix help text syntax
In reply to Phil SutterQuoted 4 lines · On Wed, 24 Feb 2016 09:21:16 +0100 Phil Sutter <[email protected]> wrote:
Get rid of extraneous closing brackets and while here, merge the double netns parameter.
Signed-off-by Phil Sutter <[email protected]>
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
PATCH v2 9/20 man: ip-link.8: minor font fix
In reply to Phil SutterWe commonly use bold font for terminals and italic for non-terminals.
--- man/man8/ip-link.8.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
man/man8/ip-link.8.in +1 -1
@@ -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
Signature · 1 line
2.7.2
PATCH v2 1/20 ip: align help text with manpage
In reply to Phil SutterAlthough 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.
--- ip/ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ip/ip.c +1 -1
@@ -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"
Signature · 1 line
2.7.2
PATCH v2 11/20 man: ip-neighbour: Fix for missing NUD_STATE description
In reply to Phil Sutter--- man/man8/ip-neighbour.8 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
man/man8/ip-neighbour.8 +8 -3
@@ -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
Signature · 1 line
2.7.2
PATCH v2 16/20 man: ip-tunnel.8: Document missing 6rd action
In reply to Phil SutterAlso drop the non-terminal 'TIME' description as it is not referenced anywhere.
--- man/man8/ip-tunnel.8 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
man/man8/ip-tunnel.8 +7 -4
@@ -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
Signature · 1 line
2.7.2
v2 cover Sync man pages and help texts
In reply to Stephen HemmingerThis 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(-)
Signature · 1 line
2.7.2
PATCH v2 20/20 man: ip-*.8: drop any reference to generic ip options
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.
--- 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(-)
man/man8/ip-addrlabel.8 +1 -13
@@ -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
man/man8/ip-link.8.in +1 -14
@@ -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 " ]"
man/man8/ip-monitor.8 +1 -3
@@ -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 " ] [
man/man8/ip-mroute.8 +1 -1
@@ -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
Signature · 1 line
2.7.2
PATCH v2 15/20 man: ip-token.8: Review synopsis section
In reply to Phil SutterDrop 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.
--- man/man8/ip-token.8 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
man/man8/ip-token.8 +6 -6
@@ -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
Signature · 1 line
2.7.2
PATCH v2 19/20 man: ip-l2tp.8: Fix BNF syntax
In reply to Phil SutterThe '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.
--- man/man8/ip-l2tp.8 | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-)
man/man8/ip-l2tp.8 +9 -15
@@ -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
Signature · 1 line
2.7.2
PATCH v2 5/20 ipntable: Fix typo in help text
In reply to Phil Sutter--- ip/ipntable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ip/ipntable.c +1 -1
@@ -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" );
Signature · 1 line
2.7.2
PATCH v2 7/20 iprule: add missing nat keyword to help text
In reply to Phil Sutter--- ip/iprule.c | 1 + 1 file changed, 1 insertion(+)
ip/iprule.c +1 -0
@@ -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" );
Signature · 1 line
2.7.2
PATCH v2 14/20 man: ip-rule.8: Review synopsis section
In reply to Phil SutterClarify 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.
--- man/man8/ip-rule.8 | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-)
man/man8/ip-rule.8 +13 -6
@@ -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 " := [ "
Signature · 1 line
2.7.2
PATCH v2 3/20 iplink: fix help text syntax
In reply to Phil SutterGet rid of extraneous closing brackets and while here, merge the double netns parameter.
--- ip/iplink.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
ip/iplink.c +4 -5
@@ -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" );
Signature · 1 line
2.7.2
PATCH v2 6/20 iproute: TYPE keyword is not optional, fix help text accordingly
In reply to Phil SutterThis 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.
--- ip/iproute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
ip/iproute.c +3 -3
@@ -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" );
Signature · 1 line
2.7.2
PATCH v2 17/20 man: ip-xfrm.8: Document missing parameters
In reply to Phil SutterNamely, 'extra-flag' of 'ip xfrm state' and 'flag' of 'ip xfrm policy'.
--- man/man8/ip-xfrm.8 | 11 +++++++++++ 1 file changed, 11 insertions(+)
man/man8/ip-xfrm.8 +11 -0
@@ -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"
Signature · 1 line
2.7.2
PATCH v2 8/20 man: ip-address.8: Minor syntax fixes
In reply to Phil SutterClarify 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'.
--- man/man8/ip-address.8.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
man/man8/ip-address.8.in +4 -4
@@ -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
Signature · 1 line
2.7.2
PATCH v2 2/20 ipaddrlabel: Improve help text precision
In reply to Phil SutterNeither 'list' nor 'flush' actions accept parameters, and with given prefix the action keyword is not optional anymore.
--- ip/ipaddrlabel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ip/ipaddrlabel.c +2 -1
@@ -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 ); }
Signature · 1 line
2.7.2
PATCH v2 4/20 ipneigh: add missing proxy keyword to help text
In reply to Phil SutterAnd while we're at it, add whitespace around braces and pipe symbol.
--- ip/ipneigh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ip/ipneigh.c +1 -1
@@ -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 ); }
Signature · 1 line
2.7.2
PATCH v2 10/20 man: ip-link.8: Fix and improve synopsis
In reply to Phil SutterReflect 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.
--- man/man8/ip-link.8.in | 100 +++++++++++++++++++++++++++----------------------- 1 file changed, 55 insertions(+), 45 deletions(-)
man/man8/ip-link.8.in +55 -45
@@ -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 " ]"
Signature · 1 line
2.7.2
PATCH v2 12/20 man: ip-netns.8: Clarify synopsis a bit
In reply to Phil SutterUse brackets to show that 'ip netns' defaults to action 'list', drop superfluous curly braces around 'set' action keyword.
--- man/man8/ip-netns.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
man/man8/ip-netns.8 +2 -2
@@ -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
Signature · 1 line
2.7.2
PATCH v2 18/20 man: ip.8: Add missing flags and token subcommand description
In reply to Phil Sutter--- man/man8/ip.8 | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-)
man/man8/ip.8 +28 -1
@@ -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
Signature · 1 line
2.7.2
PATCH v2 13/20 man: ip-ntable.8: Review synopsis section
In reply to Phil SutterThe 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.
--- man/man8/ip-ntable.8 | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-)
man/man8/ip-ntable.8 +22 -17
@@ -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" " [ "
Signature · 1 line
2.7.2
Stephen Hemminger
AppliedQuoted 40 lines · On Wed, 24 Feb 2016 09:21:13 +0100 Phil Sutter <[email protected]> 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 missingNUD_STATEdescription
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 optionsip/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 +++--
Quoted 8 lines
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
Re: [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly
In reply to Phil Sutterip/iproute.c static void usage(void) · line 91
Quoted 1 line · Phil Sutter
ip/iproute.c +1
-0+fprintf (stderr," unreachable | prohibit | blackhole | nat }\n" );
Dont think nat exists anymore...
cheers,
jamal
Re: [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly
Quoted 4 lines · Jamal Hadi Salim
ip/iproute.c static void usage(void) · line 91
Quoted 1 line · Phil Sutter
ip/iproute.c +1
-0+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
Re: [iproute PATCH v2 06/20] iproute: TYPE keyword is not optional, fix help text accordingly
Quoted 9 lines · Phil Sutter
Quoted 4 lines · Jamal Hadi Salim
ip/iproute.c static void usage(void) · line 91
Quoted 1 line · Phil Sutter
ip/iproute.c +1
-0+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().
Quoted 8 lines
The entry for
RTN_NATinnet/ipv4/fib_semantics.cthough 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