lwip: rebind UDP/TCP pcb to valid ip address when ip is changed

This change fix the issue UDP/TCP pcb failed to rebind to correct ip address when ip is changed
This commit is contained in:
Liu Zhi Fu
2017-11-15 16:15:24 +08:00
parent b83792f504
commit 095d163050
2 changed files with 13 additions and 2 deletions

View File

@@ -333,6 +333,7 @@ struct netif {
#if ESP_LWIP
void (*l2_buffer_free_notify)(void *user_buf); /* Allows LWIP to notify driver when a L2-supplied pbuf can be freed */
ip_addr_t last_ip_addr; /* Store last non-zero ip address */
#endif
};