[PATCH] iproute2: inform user when a neighbor is removed

Subsystems: the rest

STALE5111d

2 messages, 2 authors, 2012-10-08 · open the first message on its own page

[PATCH] iproute2: inform user when a neighbor is removed

From: Nicolas Dichtel <hidden>
Date: 2012-10-05 07:57:55

When running 'ip monitor neigh', there is no hint to tell if a neighbor is
updated or deleted.

Signed-off-by: Nicolas Dichtel <redacted>
---
 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

Re: [PATCH] iproute2: inform user when a neighbor is removed

From: Stephen Hemminger <hidden>
Date: 2012-10-08 17:00:57

On Fri,  5 Oct 2012 10:02:52 +0200
Nicolas Dichtel [off-list ref] wrote:
When running 'ip monitor neigh', there is no hint to tell if a neighbor is
updated or deleted.

Signed-off-by: Nicolas Dichtel <redacted>
---
Applied
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help