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
