Skip to contentSkip to conversation

nexthop: Fix Deletion display

PATCH In review Donald Sharp 2 participants 2 messages May 30, 2020

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

PATCH 1/1 nexthop: Fix Deletion display

Actually display that deletions are happening
when monitoring nexthops.

---
 ip/ipnexthop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ip/ipnexthop.c +1 -1
index 99f89630..c33cef0c 100644
@@ -224,7 +224,7 @@ int print_nexthop(struct nlmsghdr *n, void *arg)
 
 	open_json_object(NULL);
 
-	if (n->nlmsg_type == RTM_DELROUTE)
+	if (n->nlmsg_type == RTM_DELNEXTHOP)
 		print_bool(PRINT_ANY, "deleted", "Deleted ", true);
 
 	if (tb[NHA_ID])
Signature · 1 line
2.26.2
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Donald Sharp

Actually display that deletions are happening
when monitoring nexthops.

---

This can go to iproute2 net

Thanks Donald.

Quoted 19 lines
 ip/ipnexthop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ip/ipnexthop.c +1 -2
index 99f89630..c33cef0c 100644
@@ -224,7 +224,7 @@ int print_nexthop(struct nlmsghdr *n, void *arg)
 
        open_json_object(NULL);
 
-       if (n->nlmsg_type == RTM_DELROUTE)
+       if (n->nlmsg_type == RTM_DELNEXTHOP)
                print_bool(PRINT_ANY, "deleted", "Deleted ", true);
 
        if (tb[NHA_ID])
--

2.26.2