Skip to contentSkip to conversation

ipneigh: update ip neigh usage

PATCH In review Hangbin Liu 2 participants 2 messages Nov 29, 2013 – Dec 3, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipneigh: update ip neigh usage

Quoted 1 line

From function nud_state_a2n we can see there are more states could be used. So

update the ip neigh usage.

---
 ip/ipneigh.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
ip/ipneigh.c +5 -2
index d76e035..c203775 100644
@@ -46,9 +46,12 @@ 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");
+		        "                    [ nud STATE ] | proxy ADDR } [ dev DEV ]\n");
+	fprintf(stderr, "\n");
 	fprintf(stderr, "       ip neigh {show|flush} [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n");
+	fprintf(stderr, "\n");
+	fprintf(stderr, "STATE := { permanent | reachable | noarp | none | stale |\n");
+	fprintf(stderr, "           incomplete | delay | probe | failed }\n");
 	exit(-1);
 }
 
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 17 lines · On Fri, 29 Nov 2013 22:37:40 +0800 Hangbin Liu <[email protected]> wrote:

From function nud_state_a2n we can see there are more states could be used. So update the ip neigh usage.

---
 ip/ipneigh.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
ip/ipneigh.c +0 -1
index d76e035..c203775 100644
@@ -46,9 +46,12 @@ 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"

ip/ipneigh.c static void usage(void) __attribute__((noreturn)); · line 57

Quoted 10 lines
ip/ipneigh.c +5 -1
-		        "          | proxy ADDR } [ dev DEV ]\n");
+		        "                    [ nud STATE ] | proxy ADDR } [ dev DEV ]\n");
+	fprintf(stderr, "\n");
 	fprintf(stderr, "       ip neigh {show|flush} [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n");
+	fprintf(stderr, "\n");
+	fprintf(stderr, "STATE := { permanent | reachable | noarp | none | stale |\n");
+	fprintf(stderr, "           incomplete | delay | probe | failed }\n");
 	exit(-1);
 }
 

Accepted.