Hi:
I am gonna to enable AUTOIP when DHCP detection fail after trying some times.
If enable AUTOIP in this case, do I need disable DHCP ?
By the way , could enable AUTOIP be used in this case of cable is plugged out ?
Vincent Cui
Sr. Firmware Engineer
Mobile: +8613255150315
Tel: +86 21 34612525x6104
Fax: +86 21 34619770
E-Mail: vince...@enlogic.com
Shanghai EnLogic Electric Technology Co., Ltd.
Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 200233
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
lwip-...@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users
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
I'm afraid I don't understand. What do you mean by 'it still works'?
What do you expect to work how?
Simon