ipneigh: List all nud states in help output
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>
This commit is contained in:
parent
948acfed23
commit
03a0cf20b4
|
|
@ -46,10 +46,11 @@ static void usage(void) __attribute__((noreturn));
|
||||||
|
|
||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Usage: ip neigh { add | del | change | replace } { ADDR [ lladdr LLADDR ]\n"
|
fprintf(stderr, "Usage: ip neigh { add | del | change | replace }\n"
|
||||||
" [ nud { permanent | noarp | stale | reachable } ]\n"
|
" { ADDR [ lladdr LLADDR ] [ nud STATE ] | proxy ADDR } [ dev DEV ]\n");
|
||||||
" | proxy ADDR } [ dev DEV ]\n");
|
fprintf(stderr, " ip neigh { show | flush } [ proxy ] [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n\n");
|
||||||
fprintf(stderr, " ip neigh { show | flush } [ proxy ] [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n");
|
fprintf(stderr, "STATE := { permanent | noarp | stale | reachable | none |\n"
|
||||||
|
" incomplete | delay | probe | failed }\n");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue