lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] how lwip know internet cable is unplug


From: vincent cui
Subject: Re: [lwip-users] how lwip know internet cable is unplug
Date: Wed, 7 Sep 2011 08:36:03 +0000

But if booting, there is no cable plugged in, how about ?

锘?Vincent Cui
Sr.Firmware Engineer
Mobile: +8613482482211
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
http://www.enlogic.com

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Simon Goldschmidt
Sent: 2011年9月7日 16:30
To: Mailing list for lwIP users
Subject: Re: [lwip-users] how lwip know internet cable is unplug

vincent cui <address@hidden>
> You mean that I could polling the link status in a low priority task, the
> task does
> 1. disable dhcp if dhcp is enable in link loss case
> 2. enable dhcp if dhcp is disable in link recover case.

You don't need to do that: lwIP handles calling dhcp itself if you just call 
netif_set_link_up/down.

> The link status from loss to recover will happen one time at boot
> time...so the dhcp enable will put the task too ?

No, I initialized it once after booting so that change didn't happen after 
botting.

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]