netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hangbin Liu <liuhangbin@gmail.com>
To: network dev <netdev@vger.kernel.org>
Cc: Hangbin Liu <liuhangbin@gmail.com>
Subject: [patch iproute2] ipneigh: update ip neigh usage
Date: Fri, 29 Nov 2013 22:37:40 +0800	[thread overview]
Message-ID: <1385735860-7574-1-git-send-email-liuhangbin@gmail.com> (raw)

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

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
 ip/ipneigh.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ip/ipneigh.c b/ip/ipneigh.c
index d76e035..c203775 100644
--- a/ip/ipneigh.c
+++ b/ip/ipneigh.c
@@ -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);
 }
 
-- 
1.8.1.4

             reply	other threads:[~2013-11-29 14:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-29 14:37 Hangbin Liu [this message]
2013-12-03  7:51 ` [patch iproute2] ipneigh: update ip neigh usage Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1385735860-7574-1-git-send-email-liuhangbin@gmail.com \
    --to=liuhangbin@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).