mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
fix typo and style
This commit is contained in:
parent
93c1bde321
commit
b352b60205
@ -303,15 +303,13 @@ autoip_network_changed_link_up(struct netif *netif)
|
|||||||
struct autoip *autoip = netif_autoip_data(netif);
|
struct autoip *autoip = netif_autoip_data(netif);
|
||||||
|
|
||||||
if (autoip && (autoip->state != AUTOIP_STATE_OFF)) {
|
if (autoip && (autoip->state != AUTOIP_STATE_OFF)) {
|
||||||
#ifdef LWIP_DHCP_COOP
|
#if !LWIP_DHCP_AUTOIP_COOP
|
||||||
#if !LWIP_DHCP_COOP
|
|
||||||
LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE,
|
LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE,
|
||||||
("autoip_network_changed_link_up(): start acd\n"));
|
("autoip_network_changed_link_up(): start acd\n"));
|
||||||
autoip->state = AUTOIP_STATE_CHECKING;
|
autoip->state = AUTOIP_STATE_CHECKING;
|
||||||
/* Start acd check again for the last used address */
|
/* Start acd check again for the last used address */
|
||||||
acd_start(netif, &autoip->acd, autoip->llipaddr);
|
acd_start(netif, &autoip->acd, autoip->llipaddr);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -328,13 +326,11 @@ autoip_network_changed_link_down(struct netif *netif)
|
|||||||
struct autoip *autoip = netif_autoip_data(netif);
|
struct autoip *autoip = netif_autoip_data(netif);
|
||||||
|
|
||||||
if (autoip && (autoip->state != AUTOIP_STATE_OFF)) {
|
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,
|
LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE,
|
||||||
("autoip_network_changed_link_down(): stop autoip\n"));
|
("autoip_network_changed_link_down(): stop autoip\n"));
|
||||||
autoip_stop(netif);
|
autoip_stop(netif);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user