From c555b532a2e0c72fafffa55828c196ef2aae2302 Mon Sep 17 00:00:00 2001 From: jgrubb Date: Wed, 8 Aug 2007 18:22:08 +0000 Subject: [PATCH] Add NETIF_LINK_CALLBACK into the netif_set_link_up/down functions --- src/core/netif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/netif.c b/src/core/netif.c index 5ca79620..9245af28 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -445,12 +445,14 @@ void netif_set_link_callback( struct netif *netif, void (* link_callback)(struct if ( netif ) netif->link_callback = link_callback; } + /** * Called by a driver when its link goes down */ void netif_set_link_down( struct netif *netif ) { netif->flags &= ~NETIF_FLAG_LINK_UP; + NETIF_LINK_CALLBACK(netif); } /** @@ -470,5 +472,7 @@ void netif_set_link_up( struct netif *netif ) etharp_query(netif, &(netif->ip_addr), NULL); } #endif /* LWIP_ARP */ + + NETIF_LINK_CALLBACK(netif); } #endif /* LWIP_NETIF_LINK_CALLBACK */