From 6ea3ebafe077106bc2e9606d79126d034109adca Mon Sep 17 00:00:00 2001 From: Nicolas Dichtel Date: Mon, 8 Oct 2012 09:48:23 -0700 Subject: [PATCH] iproute2: inform user when a neighbor is removed When running 'ip monitor neigh', there is no hint to tell if a neighbor is updated or deleted. Signed-off-by: Nicolas Dichtel --- ip/ipneigh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ip/ipneigh.c b/ip/ipneigh.c index 93cfba257..56e56b2d2 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, -- 2.47.2