Simon: In my code,,, I check the failure of DHCP getting valid address by trying to check the IP address allocated, if try times is great than the 20, the DHCP doesn't get a valid address.
You said that "autoIP is started when DHCP does not get an address after ~30-40 seconds",,, so I could start autoIP at once after DHCP cann't get a valid address... in this case. LWIP_DHCP_AUTOIP_COOP still work ? In actually, 30 ~40 seconds is too long to me ? could I modify it ? Vincent Cui Sr. Firmware Engineer Mobile: +8613255150315 Tel: +86 21 34612525x6104 Fax: +86 21 34619770 E-Mail: [email protected] Shanghai EnLogic Electric Technology Co., Ltd. Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 200233 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Simon Goldschmidt Sent: 2011年12月5日 20:34 To: Mailing list for lwIP users Subject: Re: [lwip-users] autoip usage vincent cui <[email protected]> wrote: > I am gonna to enable AUTOIP when DHCP detection fail after trying some > times. LWIP_DHCP_AUTOIP_COOP does this for you. When LWIP_DHCP_AUTOIP_COOP==1, LWIP_DHCP==1 and LWIP_AUTOIP==1, autoIP is started when DHCP does not get an address after ~30-40 seconds. DHCP is still continued in the background then (with increased retry-delays), so if you plug in a DHCP server later, it will switch back to DHCP. Also this sequence is restarted when the link status goes back to 'up'. Simon -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
