mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 03:35:38 +00:00
netif: ext_callback: clean up netif_set_addr after last change
This commit is contained in:
parent
6934bb4428
commit
f9300c1fb0
@ -628,7 +628,7 @@ netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *
|
||||
const ip4_addr_t *gw)
|
||||
{
|
||||
#if LWIP_NETIF_EXT_STATUS_CALLBACK
|
||||
int change_reason = LWIP_NSC_NONE;
|
||||
netif_nsc_reason_t change_reason = LWIP_NSC_NONE;
|
||||
netif_ext_callback_args_t cb_args;
|
||||
ip_addr_t old_nm_val;
|
||||
ip_addr_t old_gw_val;
|
||||
@ -690,7 +690,7 @@ netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *
|
||||
#if LWIP_NETIF_EXT_STATUS_CALLBACK
|
||||
if (change_reason != LWIP_NSC_NONE) {
|
||||
change_reason |= LWIP_NSC_IPV4_SETTINGS_CHANGED;
|
||||
netif_invoke_ext_callback(netif, (netif_nsc_reason_t)change_reason, &cb_args);
|
||||
netif_invoke_ext_callback(netif, change_reason, &cb_args);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user