]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: be more informative about missing neighbors
authorDavid Lamparter <equinox@opensourcerouting.org>
Sat, 12 Mar 2022 21:09:36 +0000 (22:09 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sat, 12 Mar 2022 21:57:28 +0000 (22:57 +0100)
Much more useful to know what we were trying to find a neighbor for.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
pimd/pim_nht.c

index 4e7aad99f1f351db0306b444b2e9310768a3c85b..35c84690905d7d9a001677aa5a642cd62634f9a4 100644 (file)
@@ -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;
                        }
                }