lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] DHCP and changing the MAC address


From: Leon Woestenberg
Subject: RE: [lwip-users] DHCP and changing the MAC address
Date: Fri, 25 Jun 2004 14:43:35 +0200

Tom,

On Fri, 2004-06-25 at 01:45, Tom C. Barker wrote:
> I think I have found the issue. Your original suggestion 
> of using dhcp_release was the way to go. Again, because
> it was a static and not listed in the .h file, I assumed 
> I was not to use it. 
> 
The code is not fully clean there yet; we really should delete
state information in dhcp_release().

Also, I intended to allow dhcp_start() on existing leases; this
is not handled properly yet without a dhcp_stop() and release().

I will submit some code in the next week or so that fixes this.
You may want to keep an eye on that.

> My listening pcbs are zeroed now so the new Ip address 
> is transferred properly!
> 
UDP or TCP?

> The only other issue was fixing up my local arp table after I 
> change the MAC. Deleteing the arp entry in the client and 
> performing a ping on the ( lwIP-based ) server gets the arp
> table entry corrected. From there I am able to access my services.
> 
Can you submit back what you did? I think an arp_query() is more
clean to do here instead of the ping.

> Can you confirm how the zeroing of the lpcb takes place? 
> I could not find it. (Or at least confirm what I'm seeing is true?)
> 
Look in netif_set_addr() or whatever it is called. I think we try
to maintain UDP PCB over an IP address change, and close TCP PCBs.

I am not sure though, I do not have the time to inspect the source
code right now.

Regards, Leon.





reply via email to

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