Skip to content

Commit

Permalink
fix typo and style
Browse files Browse the repository at this point in the history
  • Loading branch information
kamendov-maxim committed Nov 24, 2024
1 parent 93c1bde commit b352b60
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/core/ipv4/autoip.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,13 @@ autoip_network_changed_link_up(struct netif *netif)
struct autoip *autoip = netif_autoip_data(netif);

if (autoip && (autoip->state != AUTOIP_STATE_OFF)) {
#ifdef LWIP_DHCP_COOP
#if !LWIP_DHCP_COOP
#if !LWIP_DHCP_AUTOIP_COOP
LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE,
("autoip_network_changed_link_up(): start acd\n"));
autoip->state = AUTOIP_STATE_CHECKING;
/* Start acd check again for the last used address */
acd_start(netif, &autoip->acd, autoip->llipaddr);
#endif
#endif
#endif
}
}

Expand All @@ -328,13 +326,11 @@ autoip_network_changed_link_down(struct netif *netif)
struct autoip *autoip = netif_autoip_data(netif);

if (autoip && (autoip->state != AUTOIP_STATE_OFF)) {
#ifdef LWIP_DHCP_AUTOIP_COOP
#if LWIP_DHCP_AUTOIP_COOP
#if LWIP_DHCP_AUTOIP_COOP
LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE,
("autoip_network_changed_link_down(): stop autoip\n"));
autoip_stop(netif);
#endif
#endif
#endif
}
}

Expand Down

0 comments on commit b352b60

Please sign in to comment.