0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Nest: Fix printing of hostentry table

When hostentry is printed, it should show the table in which the nexthop
is resolved, not the dependend one.
This commit is contained in:
Ondrej Zajicek 2024-03-27 23:16:51 +01:00
parent 3b217f2984
commit eadebc287b

View File

@ -1376,9 +1376,9 @@ ea_show_hostentry(const struct adata *ad, byte *buf, uint size)
uint s = 0;
if (ipa_nonzero(had->he->link) && !ipa_equal(had->he->link, had->he->addr))
s = bsnprintf(buf, size, "via %I %I table %s", had->he->addr, had->he->link, had->he->tab->name);
s = bsnprintf(buf, size, "via %I %I table %s", had->he->addr, had->he->link, had->he->owner->name);
else
s = bsnprintf(buf, size, "via %I table %s", had->he->addr, had->he->tab->name);
s = bsnprintf(buf, size, "via %I table %s", had->he->addr, had->he->owner->name);
uint lc = HOSTENTRY_LABEL_COUNT(had);
if (!lc)