fixed bug #34684: Clear the arp table cache when netif is brought down

This commit is contained in:
goldsimon
2011-11-22 21:44:28 +01:00
parent 96d332e234
commit 08b497faea
4 changed files with 27 additions and 2 deletions

View File

@@ -539,6 +539,11 @@ void netif_set_down(struct netif *netif)
snmp_get_sysuptime(&netif->ts);
#endif
#if LWIP_ARP
if (netif->flags & NETIF_FLAG_ETHARP) {
etharp_cleanup_netif(netif);
}
#endif /* LWIP_ARP */
NETIF_STATUS_CALLBACK(netif);
}
}