mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54: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:
@@ -1376,9 +1376,9 @@ ea_show_hostentry(const struct adata *ad, byte *buf, uint size)
|
|||||||
uint s = 0;
|
uint s = 0;
|
||||||
|
|
||||||
if (ipa_nonzero(had->he->link) && !ipa_equal(had->he->link, had->he->addr))
|
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
|
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);
|
uint lc = HOSTENTRY_LABEL_COUNT(had);
|
||||||
if (!lc)
|
if (!lc)
|
||||||
|
Reference in New Issue
Block a user