mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
[Gratuitous ARP] Check that IF has both LINK_UP and UP flags
See this comment and further discussion in the issue: https://github.com/xoseperez/espurna/pull/1877#issuecomment-525597314 Use the same condition as esp-lwip.
This commit is contained in:
+1
-1
@@ -946,7 +946,7 @@ void sendGratuitousARP() {
|
||||
while (n) {
|
||||
if ((n->hwaddr_len == ETH_HWADDR_LEN) &&
|
||||
(n->flags & NETIF_FLAG_ETHARP) &&
|
||||
((n->flags & NETIF_FLAG_LINK_UP) || (n->flags & NETIF_FLAG_UP))) {
|
||||
((n->flags & NETIF_FLAG_LINK_UP) && (n->flags & NETIF_FLAG_UP))) {
|
||||
#ifdef ESP32
|
||||
etharp_gratuitous_r(n);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user