diff options
Diffstat (limited to 'lib/if.c')
-rw-r--r-- | lib/if.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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. */ |