[Top][All Lists]
[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:40:13 +0000 |
netif_set_link_up/down will do something about dhcp, but it also call
link_callback function.
I plan do something about dhcp in the link callback function . as you said, it
is redundence
锘?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
- Re: [lwip-users] how lwip know internet cable is unplug, (continued)
- Re: [lwip-users] how lwip know internet cable is unplug, ake . forslund, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug, vincent cui, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug, ake . forslund, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug, vincent cui, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug, ake . forslund, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug, vincent cui, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug, Simon Goldschmidt, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug, vincent cui, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug, Simon Goldschmidt, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug, vincent cui, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug,
vincent cui <=
- Re: [lwip-users] how lwip know internet cable is unplug, Bill Auerbach, 2011/09/07
- Re: [lwip-users] how lwip know internet cable is unplug, vincent cui, 2011/09/07
Re: [lwip-users] how lwip know internet cable is unplug, Stephane Lesage, 2011/09/02
Re: [lwip-users] how lwip know internet cable is unplug, Kieran Mansley, 2011/09/02