summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-06-22 09:57:08 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-06-23 13:43:25 -0400
commit6f55b4ae2405e548f687526b013b5ddcc4f6ff89 (patch)
tree79fc7adce746f513c9dcd01a5cdaf8181c2238d5
parentd9529c9fb11d7fabe6f6986761293358dc0baffe (diff)
pimd: Let end operator know the ifindex as well in failure case
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--pimd/pim_zlookup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c
index 28777e4947..87cf434133 100644
--- a/pimd/pim_zlookup.c
+++ b/pimd/pim_zlookup.c
@@ -258,8 +258,9 @@ static int zclient_read_nexthop(struct pim_instance *pim,
nexthop_tab[num_ifindex].ifindex = nh_ifi;
++num_ifindex;
#else
- zlog_warn("cannot use IPv4 nexthop %pI4 for IPv6 %pPA",
- &nh_ip4, &addr);
+ zlog_warn(
+ "cannot use IPv4 nexthop %pI4(%d) for IPv6 %pPA",
+ &nh_ip4, nh_ifi, &addr);
#endif
break;
case NEXTHOP_TYPE_IPV6_IFINDEX: