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>
This commit is contained in:
Nicolas Dichtel 2012-10-08 09:48:23 -07:00 committed by Stephen Hemminger
parent 253eb98b77
commit 6ea3ebafe0

View File

@ -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,