commit | 6ea3ebafe077106bc2e9606d79126d034109adca | [log] [tgz] |
---|---|---|
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | Mon Oct 08 09:48:23 2012 -0700 |
committer | Stephen Hemminger <shemminger@vyatta.com> | Mon Oct 08 09:48:23 2012 -0700 |
tree | 0f23b1df4f2983a30c37951b8b1c59eb5b417dd4 | |
parent | 253eb98b77e4b88a437009a25417349c3a128986 [diff] |
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 <nicolas.dichtel@6wind.com>
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 @@ return 0; } + if (n->nlmsg_type == RTM_DELNEIGH) + fprintf(fp, "delete "); if (tb[NDA_DST]) { fprintf(fp, "%s ", format_host(r->ndm_family,