mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-17 06:53:26 +08:00
iproute2: Mention the 'up' argument in documentation
Both ip-link and ip-address support the 'up' argument, however this isn't documented in neither their help outputs or ip-address' manpage. This patch fixes that. Signed-off-by: Petr Šabata <contyk@redhat.com> Reported-by: Jiří Popelka <jpopelka@redhat.com>
This commit is contained in:
parent
e7b24b67db
commit
4405123433
@ -71,7 +71,7 @@ static void usage(void)
|
||||
fprintf(stderr, " [ CONFFLAG-LIST ]\n");
|
||||
fprintf(stderr, " ip addr del IFADDR dev STRING\n");
|
||||
fprintf(stderr, " ip addr {show|save|flush} [ dev STRING ] [ scope SCOPE-ID ]\n");
|
||||
fprintf(stderr, " [ to PREFIX ] [ FLAG-LIST ] [ label PATTERN ]\n");
|
||||
fprintf(stderr, " [ to PREFIX ] [ FLAG-LIST ] [ label PATTERN ] [up]\n");
|
||||
fprintf(stderr, " ip addr {showdump|restore}\n");
|
||||
fprintf(stderr, "IFADDR := PREFIX | ADDR peer PREFIX\n");
|
||||
fprintf(stderr, " [ broadcast ADDR ] [ anycast ADDR ]\n");
|
||||
|
@ -79,7 +79,7 @@ void iplink_usage(void)
|
||||
fprintf(stderr, " [ spoofchk { on | off} ] ] \n");
|
||||
fprintf(stderr, " [ master DEVICE ]\n");
|
||||
fprintf(stderr, " [ nomaster ]\n");
|
||||
fprintf(stderr, " ip link show [ DEVICE | group GROUP ]\n");
|
||||
fprintf(stderr, " ip link show [ DEVICE | group GROUP ] [up]\n");
|
||||
|
||||
if (iplink_have_newlink()) {
|
||||
fprintf(stderr, "\n");
|
||||
|
@ -162,6 +162,10 @@ only list addresses with labels matching the
|
||||
.I PATTERN
|
||||
is a usual shell style pattern.
|
||||
|
||||
.TP
|
||||
.B up
|
||||
only list running interfaces.
|
||||
|
||||
.TP
|
||||
.BR dynamic " and " permanent
|
||||
(IPv6 only) only list addresses installed due to stateless
|
||||
|
Loading…
Reference in New Issue
Block a user