* [PATCH] iproute2: inform user when a neighbor is removed
@ 2012-10-05 8:02 Nicolas Dichtel
2012-10-08 16:49 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Dichtel @ 2012-10-05 8:02 UTC (permalink / raw)
To: shemminger; +Cc: netdev, Nicolas Dichtel
When running 'ip monitor neigh', there is no hint to tell if a neighbor is
updated or deleted.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
ip/ipneigh.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ip/ipneigh.c b/ip/ipneigh.c
index 93cfba2..56e56b2 100644
--- a/ip/ipneigh.c
+++ b/ip/ipneigh.c
@@ -249,6 +249,8 @@ int print_neigh(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
return 0;
}
+ if (n->nlmsg_type == RTM_DELNEIGH)
+ fprintf(fp, "delete ");
if (tb[NDA_DST]) {
fprintf(fp, "%s ",
format_host(r->ndm_family,
--
1.7.12
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iproute2: inform user when a neighbor is removed
2012-10-05 8:02 [PATCH] iproute2: inform user when a neighbor is removed Nicolas Dichtel
@ 2012-10-08 16:49 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2012-10-08 16:49 UTC (permalink / raw)
To: Nicolas Dichtel; +Cc: netdev
On Fri, 5 Oct 2012 10:02:52 +0200
Nicolas Dichtel <nicolas.dichtel@6wind.com> wrote:
> When running 'ip monitor neigh', there is no hint to tell if a neighbor is
> updated or deleted.
>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
> ---
Applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-08 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-05 8:02 [PATCH] iproute2: inform user when a neighbor is removed Nicolas Dichtel
2012-10-08 16:49 ` Stephen Hemminger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.