* [patch iproute2] ipneigh: update ip neigh usage
@ 2013-11-29 14:37 Hangbin Liu
2013-12-03 7:51 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Hangbin Liu @ 2013-11-29 14:37 UTC (permalink / raw)
To: network dev; +Cc: Hangbin Liu
>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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch iproute2] ipneigh: update ip neigh usage
2013-11-29 14:37 [patch iproute2] ipneigh: update ip neigh usage Hangbin Liu
@ 2013-12-03 7:51 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2013-12-03 7:51 UTC (permalink / raw)
To: Hangbin Liu; +Cc: network dev
On Fri, 29 Nov 2013 22:37:40 +0800
Hangbin Liu <liuhangbin@gmail.com> wrote:
> 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);
> }
>
Accepted.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-03 7:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-29 14:37 [patch iproute2] ipneigh: update ip neigh usage Hangbin Liu
2013-12-03 7:51 ` Stephen Hemminger
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).