[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Link Up/Down Treatment
From: |
ella |
Subject: |
Re: [lwip-users] Link Up/Down Treatment |
Date: |
Wed, 12 Jun 2013 05:50:11 -0700 (PDT) |
Hi,
According to WiKi
address@hidden wrote
> your driver should call the netif_set_link_up and netif_set_link_down
> functions instead of setting the NETIF_FLAG_LINK_UP flag directly. (If you
> are using the tcpip thread, then you should call tcpip_callback with an
> argument of one of these two functions; this will protect against
> concurrent access, specifically in the ARP modules.)
So to my understanding in driver I can use tcpip_callback instead of
netifapi_netif_common. But according to the source code they are doing the
same job, posting function pointer via message queue to the tcpip_thread.
--
View this message in context:
http://lwip.100.n7.nabble.com/Link-Up-Down-Treatment-tp21551p21555.html
Sent from the lwip-users mailing list archive at Nabble.com.