diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-10-11 14:39:13 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-10-11 14:39:13 +0200 |
commit | addb1bcd86885dcee559a61eb18998ae6a38b2ab (patch) | |
tree | 46be3c52932adb8c7525107e93dfa8fd693146f7 /nest/iface.c | |
parent | 961671c0f51693aff34bf3adf5319b35275a86d3 (diff) |
Nest: Fix 'show interfaces summary' command
The command showed interfaces that were removed / in shutdown.
Diffstat (limited to 'nest/iface.c')
-rw-r--r-- | nest/iface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nest/iface.c b/nest/iface.c index a633f748..9462b634 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 |