[Top][All Lists]

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

Re: [lwip-users] netif_set_ipaddr

From: Leon Woestenberg
Subject: Re: [lwip-users] netif_set_ipaddr
Date: Fri, 29 Jul 2005 22:16:52 +0200
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Hello Jim,

Jim Gibbons wrote:

I haven't checked the CVS head, but in version 1.1.0, there seems to be a problem in the processing of the listening pcb's.

There is a loop that tries to correct these pcb's if their IP address has changed. The problem is that there is no check to see if the listening pcb doesn't care about the address. Normally, this will cause no problems. It takes some pretty elaborate circumstances (involving DHCP on two or more interfaces and listening before the DHCP address is acquired) for this to be an issue. Nevertheless, I think it is wrong in principal to change a pcb from listening on any IP address to listening on a specific one.

Have I missed something?

No, you found a bug. I am not sure for the proper fix though. Should UDP PCBs listening to the former netif IP address be listening to the new netif IP address? And TCP?




reply via email to

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