lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] autoip usage


From: vincent cui
Subject: Re: [lwip-users] autoip usage
Date: Mon, 5 Dec 2011 13:27:25 +0000

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: address@hidden
Shanghai EnLogic Electric Technology Co., Ltd.
Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 
200233
 


-----Original Message-----
From: address@hidden [mailto:address@hidden 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 <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

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]