Commit 6ea3ebaf authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by Stephen Hemminger

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: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
parent 253eb98b
...@@ -249,6 +249,8 @@ int print_neigh(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) ...@@ -249,6 +249,8 @@ int print_neigh(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
return 0; return 0;
} }
if (n->nlmsg_type == RTM_DELNEIGH)
fprintf(fp, "delete ");
if (tb[NDA_DST]) { if (tb[NDA_DST]) {
fprintf(fp, "%s ", fprintf(fp, "%s ",
format_host(r->ndm_family, format_host(r->ndm_family,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment