mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-01 16:16:54 +08:00
feat(lwip): Rebind UDP pcb when IP changed
1. Rebind the UDP pcb, which originally bind to non-zero IPv4 address, to the new IPv4 address when the IPv4 address of related netif is changed. 2. Rebind the TCP pcb, which is in listening status, to the new IPv4 address when IPv4 address of related netif is changed. Notice: Recompile some related libs due to netif.h changed. internal: f194dd34
This commit is contained in:
@ -160,6 +160,10 @@ struct netif {
|
||||
/** pointer to next in linked list */
|
||||
struct netif *next;
|
||||
|
||||
#ifdef LWIP_ESP8266
|
||||
ip_addr_t last_ip_addr;
|
||||
#endif
|
||||
|
||||
/** IP address configuration in network byte order */
|
||||
ip_addr_t ip_addr;
|
||||
ip_addr_t netmask;
|
||||
|
Reference in New Issue
Block a user