From: Roopa Prabhu <ro...@cumulusnetworks.com>

It helps to grep for one string "Deleted" when monitoring all events.

Fixes: 6ea3ebafe077 ("iproute2: inform user when a neighbor is removed")
Signed-off-by: Roopa Prabhu <ro...@cumulusnetworks.com>
---
I am not sure if it is too late for this change. But, sending this patch 
out because it only affects ip monitor output

 ip/ipneigh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/ipneigh.c b/ip/ipneigh.c
index a9e23f4..ce57ede 100644
--- a/ip/ipneigh.c
+++ b/ip/ipneigh.c
@@ -256,7 +256,7 @@ int print_neigh(const struct sockaddr_nl *who, struct 
nlmsghdr *n, void *arg)
        }
 
        if (n->nlmsg_type == RTM_DELNEIGH)
-               fprintf(fp, "delete ");
+               fprintf(fp, "Deleted ");
        else if (n->nlmsg_type == RTM_GETNEIGH)
                fprintf(fp, "miss ");
        if (tb[NDA_DST]) {
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to