]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ipneigh: List all nud states in help output
authorPhil Sutter <phil@nwl.cc>
Fri, 4 Mar 2016 19:07:21 +0000 (20:07 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 4 Mar 2016 23:27:52 +0000 (15:27 -0800)
To not make the output overly confusing, list them in a definition of
the STATE placeholder which is already used in the show/flush syntax but
wasn't explained before.

Signed-off-by: Phil Sutter <phil@nwl.cc>
ip/ipneigh.c

index 9b1499b08b060a33b8d8336d8da90fa4ca6d08fc..48cca196fa7a82ffbe364c1097426dc6fc904740 100644 (file)
@@ -46,10 +46,11 @@ static void usage(void) __attribute__((noreturn));
 
 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 } [ proxy ] [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n");
+       fprintf(stderr, "Usage: ip neigh { add | del | change | replace }\n"
+                       "                { ADDR [ lladdr LLADDR ] [ nud STATE ] | proxy ADDR } [ dev DEV ]\n");
+       fprintf(stderr, "       ip neigh { show | flush } [ proxy ] [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n\n");
+       fprintf(stderr, "STATE := { permanent | noarp | stale | reachable | none |\n"
+                       "           incomplete | delay | probe | failed }\n");
        exit(-1);
 }