mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-21 22:07:03 +00:00
Nexthop dump fix for unreachables
This commit is contained in:
parent
796f0af0cc
commit
e85f4e890a
@ -1348,7 +1348,15 @@ nexthop_dump(const struct adata *ad)
|
|||||||
|
|
||||||
debug(":");
|
debug(":");
|
||||||
|
|
||||||
NEXTHOP_WALK(nh, nhad)
|
if (!NEXTHOP_IS_REACHABLE(nhad))
|
||||||
|
{
|
||||||
|
const char *name = rta_dest_name(nhad->dest);
|
||||||
|
if (name)
|
||||||
|
debug(" %s", name);
|
||||||
|
else
|
||||||
|
debug(" D%d", nhad->dest);
|
||||||
|
}
|
||||||
|
else NEXTHOP_WALK(nh, nhad)
|
||||||
{
|
{
|
||||||
if (ipa_nonzero(nh->gw)) debug(" ->%I", nh->gw);
|
if (ipa_nonzero(nh->gw)) debug(" ->%I", nh->gw);
|
||||||
if (nh->labels) debug(" L %d", nh->label[0]);
|
if (nh->labels) debug(" L %d", nh->label[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user