Fixed bug #28248 (netif_remove doesn't call netif callback) by calling netif_set_down() from netif_remove()

This commit is contained in:
goldsimon 2010-01-10 13:34:21 +00:00
parent 86f2942c2a
commit c483c13dc4

View File

@ -203,6 +203,10 @@ netif_remove(struct netif *netif)
igmp_stop(netif);
}
#endif /* LWIP_IGMP */
if (netif_is_up(netif)) {
/* set netif down before removing (call callback function) */
netif_set_down(netif);
}
snmp_delete_ipaddridx_tree(netif);