Using LWIP_DHCP_AUTOIP_COOP, it still works when cable is unplugged into , right ?
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日 21:26 To: Mailing list for lwIP users Subject: Re: [lwip-users] autoip usage vincent cui <[email protected]> wrote: > so I could start autoIP at once after DHCP cann't get a > valid address... in this case. > LWIP_DHCP_AUTOIP_COOP still work ? No, with LWIP_DHCP_AUTOIP_COOP enabled, you MUST NOT call autoip_start() yourself! Only the dhcp code may call this or else the AutoIP state machine might get out of sync. > In actually, 30 ~40 seconds is too long to me ? could I modify it ? Yes, just change the define LWIP_DHCP_AUTOIP_COOP_TRIES from its default value of 9. LWIP_DHCP_AUTOIP_COOP_TRIES is the number of DHCP-discover retries that have to fail before changing to AutoIP mode (which is why I don't remember the default time here - dhcp retries use an exponential backoff for the timeout...). Simon -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone _______________________________________________ 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
