lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Listening PCBs updating address issue


From: Amena El Homsi
Subject: [lwip-users] Listening PCBs updating address issue
Date: Fri, 29 Apr 2022 16:18:05 +0300

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]