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: ake . forslund
Subject: Re: [lwip-users] how lwip know internet cable is unplug
Date: Fri, 2 Sep 2011 14:03:04 +0200

Thanks for the tip. set_link_up/down looks pretty safe to use from my rx-thread (rx handled by a separate thread triggered by eth-interrupt). Is it the callback that need to be protected from threding issues?

/Åke
-----------------------------
Åke Forslund
0433-273296
NIBE AB
Box 14
S-285 21  Markaryd
Tel +46-(0)433-273296



From: "Simon Goldschmidt" <address@hidden>
To: Mailing list for lwIP users <address@hidden>
Date: 2011-09-02 09:55
Subject: Re: [lwip-users] how lwip know internet cable is unplug
Sent by: address@hidden





address@hidden wrote:
> Maybe it should be
> handled with the netif_set_up/down-functions

Nearly: it should call netif_set_link_up/down (watch out for threading issues!), which in turn calls user-specified callbacks. This has to be enabled using a define (I think it's turned off by default).

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]