mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 02:37:19 +02:00
Merge branch 'bugfix/lwip_no_garp_for_any_addr_v5.0' into 'release/v5.0'
lwip: Send Periodic Gratuitous ARP only on valid IPv4 (v5.0) See merge request espressif/esp-idf!22965
This commit is contained in:
@ -174,7 +174,9 @@ static void dns_clear_servers(bool keep_fallback)
|
||||
static void netif_send_garp(void *arg)
|
||||
{
|
||||
struct netif *netif = arg;
|
||||
etharp_gratuitous(netif);
|
||||
if (!ip4_addr_cmp(netif_ip4_addr(netif), IP4_ADDR_ANY4)) { // Send GARP requests only if we have a valid IP
|
||||
etharp_gratuitous(netif);
|
||||
}
|
||||
sys_timeout(CONFIG_LWIP_GARP_TMR_INTERVAL*1000, netif_send_garp, netif);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user