From eadebc287b88b4c6accc9dc0f00292d844f69dcc Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 27 Mar 2024 23:16:51 +0100 Subject: [PATCH] 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. --- nest/rt-attr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.2