Commit addb1bcd authored by Ondřej Zajíček's avatar Ondřej Zajíček

Nest: Fix 'show interfaces summary' command

The command showed interfaces that were removed / in shutdown.
parent 961671c0
......@@ -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)
if (i->addr4)
bsprintf(a4, "%I/%d", i->addr4->ip, i->addr4->prefix.pxlen);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment