Nest: Fix 'show interfaces summary' command

The command showed interfaces that were removed / in shutdown.
This commit is contained in:
Ondrej Zajicek (work) 2018-10-11 14:39:13 +02:00
parent 961671c0f5
commit addb1bcd86

View file

@ -887,6 +887,9 @@ if_show_summary(void)
byte a4[IPA_MAX_TEXT_LENGTH + 17]; byte a4[IPA_MAX_TEXT_LENGTH + 17];
byte a6[IPA_MAX_TEXT_LENGTH + 17]; byte a6[IPA_MAX_TEXT_LENGTH + 17];
if (i->flags & IF_SHUTDOWN)
continue;
if (i->addr4) if (i->addr4)
bsprintf(a4, "%I/%d", i->addr4->ip, i->addr4->prefix.pxlen); bsprintf(a4, "%I/%d", i->addr4->ip, i->addr4->prefix.pxlen);
else else