[Top][All Lists]

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

[lwip-users] DHCP and changing the MAC address

From: Tom C. Barker
Subject: [lwip-users] DHCP and changing the MAC address
Date: Thu, 24 Jun 2004 11:27:51 -0700


I have a manufacturing scenario where I need to change the
MAC address after DHCP has come up. My code will stop_dhcp
and then start_dhcp. If I initially zero out the ip address, 
I get a response from my dhcp server and am up and running
however, when the code goes to change the listening pcbs 
for any previously running services, no pcb local addresses 
get changed to the new dhcp-assigned addressed because the 
interface ip was set to zero and does not match the original 
pcb's local address. 

If I do not zero the ip address prior to asking for a new
dhcp address, (ask for a new dhcp address while I claim I
have an address) I get no response from my dhcp server. The
coarse timer simply keeps sending out requests every 10 seconds.

Going back and forth from DHCP-off and a static IP address
to DHCP-on performs perfectly. 

Could anyone help on this issue? 

Thanks in advance,
Tom Barker

reply via email to

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