mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-23 14:57:02 +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:
parent
3b217f2984
commit
eadebc287b
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user