From: Ondrej Zajicek Date: Wed, 27 Mar 2024 22:16:51 +0000 (+0100) Subject: Nest: Fix printing of hostentry table X-Git-Tag: v3.0.0~267 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eadebc287b88b4c6accc9dc0f00292d844f69dcc;p=thirdparty%2Fbird.git 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. --- diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 546c67dba..0a74cd3de 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -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)