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: Simon Goldschmidt
Subject: Re: [lwip-users] how lwip know internet cable is unplug
Date: Wed, 07 Sep 2011 10:30:13 +0200

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



reply via email to

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