summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-10-11 14:39:13 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-10-11 14:39:13 +0200
commitaddb1bcd86885dcee559a61eb18998ae6a38b2ab (patch)
tree46be3c52932adb8c7525107e93dfa8fd693146f7 /nest
parent961671c0f51693aff34bf3adf5319b35275a86d3 (diff)
Nest: Fix 'show interfaces summary' command
The command showed interfaces that were removed / in shutdown.
Diffstat (limited to 'nest')
-rw-r--r--nest/iface.c3
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