summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/if.c b/lib/if.c
index d49b5acad..97edf1769 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -638,16 +638,14 @@ if_flag_dump (unsigned long flag)
static void
if_dump (const struct interface *ifp)
{
+ struct listnode *node;
+ struct connected *c __attribute__((unused));
+
+ for (ALL_LIST_ELEMENTS_RO (ifp->connected, node, c))
zlog_info ("Interface %s vrf %u index %d metric %d mtu %d "
-#ifdef HAVE_IPV6
- "mtu6 %d "
-#endif /* HAVE_IPV6 */
- "%s",
+ "mtu6 %d %s",
ifp->name, ifp->vrf_id, ifp->ifindex, ifp->metric, ifp->mtu,
-#ifdef HAVE_IPV6
- ifp->mtu6,
-#endif /* HAVE_IPV6 */
- if_flag_dump (ifp->flags));
+ ifp->mtu6, if_flag_dump (ifp->flags));
}
/* Interface printing for all interface. */