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:
Espressif Systems
2017-08-25 12:14:33 +08:00
parent e0f5e219ea
commit 7fbd498a3c
8 changed files with 41 additions and 10 deletions

View File

@ -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;