From c483c13dc4fd858128586ab1d223730067f5fef9 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sun, 10 Jan 2010 13:34:21 +0000 Subject: [PATCH] Fixed bug #28248 (netif_remove doesn't call netif callback) by calling netif_set_down() from netif_remove() --- src/core/netif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/netif.c b/src/core/netif.c index f1cc73b9..b8cce191 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -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);