Hi,

When we call netif_remove(), tcp_netif_ip_addr_changed() is called. In this
case old_addr is not null and new_addr is null, which means
that tcp_netif_ip_addr_changed_pcblist() will be called to abort active and
bound pcbs.
However, since new_addr is null, the listening pcbs are not updated and
they are still listening to the old addr.
When we start a new DHCP session and we get an IP
address, tcp_netif_ip_addr_changed() is called. However, since old_addr is
NULL, the listening PCBs will not be updated.

We should have a way to update the listening PCBs ip address even when the
old_addr is null. Am I right or wrong?

-- 

Amena El-Homsi
Computer & Communication Engineer
Dipl. Eng,  M.S.
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to