From: Petr Šabata Date: Thu, 14 Mar 2013 14:10:44 +0000 (+0100) Subject: iproute2: Mention the 'up' argument in documentation X-Git-Tag: v3.9.0~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44051234330e3211f0cf4b4741114d4b93b439a4;p=thirdparty%2Fiproute2.git 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 Reported-by: Jiří Popelka --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index fdd2a74dd..3c08ace8a 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -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"); diff --git a/ip/iplink.c b/ip/iplink.c index ad3361141..5c7b43cf7 100644 --- a/ip/iplink.c +++ b/ip/iplink.c @@ -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"); diff --git a/man/man8/ip-address.8.in b/man/man8/ip-address.8.in index 63bf9cb74..3cfc56a9a 100644 --- a/man/man8/ip-address.8.in +++ b/man/man8/ip-address.8.in @@ -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