]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iproute2: Mention the 'up' argument in documentation
authorPetr Šabata <contyk@redhat.com>
Thu, 14 Mar 2013 14:10:44 +0000 (15:10 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 14 Mar 2013 20:26:33 +0000 (13:26 -0700)
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>
ip/ipaddress.c
ip/iplink.c
man/man8/ip-address.8.in

index fdd2a74ddb46c4545be8d34d81212785c4a4e9cf..3c08ace8ab5d6534a5f7e9c6910a5da9d80977f9 100644 (file)
@@ -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");
index ad33611415c03d3feadd73bb00ec2a2edeebf3c2..5c7b43cf72cb3b8dabae2925cdbdd870a30a10ca 100644 (file)
@@ -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");
index 63bf9cb7417695ed36f425fc79c54ccc91fefc95..3cfc56a9aa2cd8a24f51ba0f9fa45133a5e86815 100644 (file)
@@ -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