mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-06 20:13:13 +00:00
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:
parent
253eb98b77
commit
6ea3ebafe0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user