From: Ondrej Zajicek (work) Date: Thu, 11 Oct 2018 12:39:13 +0000 (+0200) Subject: Nest: Fix 'show interfaces summary' command X-Git-Tag: v2.0.3~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=addb1bcd86885dcee559a61eb18998ae6a38b2ab;p=thirdparty%2Fbird.git Nest: Fix 'show interfaces summary' command The command showed interfaces that were removed / in shutdown. --- diff --git a/nest/iface.c b/nest/iface.c index a633f748a..9462b6341 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -887,6 +887,9 @@ if_show_summary(void) byte a4[IPA_MAX_TEXT_LENGTH + 17]; byte a6[IPA_MAX_TEXT_LENGTH + 17]; + if (i->flags & IF_SHUTDOWN) + continue; + if (i->addr4) bsprintf(a4, "%I/%d", i->addr4->ip, i->addr4->prefix.pxlen); else