version 1.1.1.1, 2012/02/21 17:26:12
|
version 1.1.1.2, 2012/10/09 09:22:28
|
Line 146 if_delete_retain (struct interface *ifp)
|
Line 146 if_delete_retain (struct interface *ifp)
|
(*if_master.if_delete_hook) (ifp); |
(*if_master.if_delete_hook) (ifp); |
|
|
/* Free connected address list */ |
/* Free connected address list */ |
list_delete (ifp->connected); | list_delete_all_node (ifp->connected); |
} |
} |
|
|
/* Delete and free interface structure. */ |
/* Delete and free interface structure. */ |
Line 157 if_delete (struct interface *ifp)
|
Line 157 if_delete (struct interface *ifp)
|
|
|
if_delete_retain(ifp); |
if_delete_retain(ifp); |
|
|
|
list_free (ifp->connected); |
|
|
XFREE (MTYPE_IF, ifp); |
XFREE (MTYPE_IF, ifp); |
} |
} |
|
|
Line 429 if_dump (const struct interface *ifp)
|
Line 431 if_dump (const struct interface *ifp)
|
struct listnode *node; |
struct listnode *node; |
struct connected *c; |
struct connected *c; |
|
|
zlog_info ("Interface %s index %d metric %d mtu %d " | for (ALL_LIST_ELEMENTS_RO (ifp->connected, node, c)) |
| zlog_info ("Interface %s index %d metric %d mtu %d " |
#ifdef HAVE_IPV6 |
#ifdef HAVE_IPV6 |
"mtu6 %d " | "mtu6 %d " |
#endif /* HAVE_IPV6 */ |
#endif /* HAVE_IPV6 */ |
"%s", | "%s", |
ifp->name, ifp->ifindex, ifp->metric, ifp->mtu, | ifp->name, ifp->ifindex, ifp->metric, ifp->mtu, |
#ifdef HAVE_IPV6 |
#ifdef HAVE_IPV6 |
ifp->mtu6, | ifp->mtu6, |
#endif /* HAVE_IPV6 */ |
#endif /* HAVE_IPV6 */ |
if_flag_dump (ifp->flags)); | if_flag_dump (ifp->flags)); |
| |
for (ALL_LIST_ELEMENTS_RO (ifp->connected, node, c)) | |
; | |
} |
} |
|
|
/* Interface printing for all interface. */ |
/* Interface printing for all interface. */ |