Skip to contentSkip to conversation

ip monitor neigh: Change 'delete' to 'Deleted' to be consistent with ip route

PATCH In review Roopa Prabhu 3 participants 3 messages Oct 15, 2015 – Oct 16, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip monitor neigh: Change 'delete' to 'Deleted' to be consistent with ip route

From: Roopa Prabhu <[email protected]>

It helps to grep for one string "Deleted" when monitoring all events.

Fixes 6ea3ebafe077 ("iproute2: inform user when a neighbor is removed")

---
I am not sure if it is too late for this change. But, sending this patch out because it only affects ip monitor output

 ip/ipneigh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ip/ipneigh.c +1 -1
index a9e23f4..ce57ede 100644
@@ -256,7 +256,7 @@ int print_neigh(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
 	}
 
 	if (n->nlmsg_type == RTM_DELNEIGH)
-		fprintf(fp, "delete ");
+		fprintf(fp, "Deleted ");
 	else if (n->nlmsg_type == RTM_GETNEIGH)
 		fprintf(fp, "miss ");
 	if (tb[NDA_DST]) {
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Roopa Prabhu

From: Roopa Prabhu <[email protected]>

It helps to grep for one string "Deleted" when monitoring all events.

Fixes 6ea3ebafe077 ("iproute2: inform user when a neighbor is removed")
Quoted 3 lines

---
I am not sure if it is too late for this change. But, sending this patch out because it only affects ip monitor output

Seems reasonable to me, but I let Stephen speaking at this.

#2 lore raw
In reply to Roopa Prabhu
Quoted 10 lines · On Thu, 15 Oct 2015 11:47:43 -0700 Roopa Prabhu <[email protected]>…

From: Roopa Prabhu <[email protected]>

It helps to grep for one string "Deleted" when monitoring all events.

Fixes 6ea3ebafe077 ("iproute2: inform user when a neighbor is removed")

---
I am not sure if it is too late for this change. But, sending this patch out because it only affects ip monitor output

Sure applied.