[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] autoip usage
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] autoip usage |
Date: |
Mon, 05 Dec 2011 14:26:09 +0100 |
vincent cui <address@hidden> 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