From 185754fe7cea87483a553c4697508080905687e5 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sat, 12 Mar 2022 22:09:36 +0100 Subject: [PATCH] pimd: be more informative about missing neighbors Much more useful to know what we were trying to find a neighbor for. Signed-off-by: David Lamparter --- pimd/pim_nht.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c index 4e7aad99f1..35c8469090 100644 --- a/pimd/pim_nht.c +++ b/pimd/pim_nht.c @@ -993,12 +993,14 @@ int pim_ecmp_nexthop_lookup(struct pim_instance *pim, if (!nbr && !if_is_loopback(ifp)) { if (i == mod_val) mod_val++; - i++; if (PIM_DEBUG_PIM_NHT) zlog_debug( - "%s: NBR not found on input interface %s(%s) (RPF for source %pPA)", - __func__, ifp->name, - pim->vrf->name, &src_addr); + "%s: NBR (%pFXh) not found on input interface %s(%s) (RPF for source %pPA)", + __func__, + &nexthop_tab[i].nexthop_addr, + ifp->name, pim->vrf->name, + &src_addr); + i++; continue; } } -- 2.39.5