mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
IP forwarding: A few fixes from early testing; In TUN driver, do all polling on worker thread. Otherwise, the stack gets very deep.
This commit is contained in:
@@ -167,7 +167,7 @@ void netdev_ipv6_txnotify(FAR const net_ipv6addr_t ripaddr)
|
||||
|
||||
void netdev_txnotify_dev(FAR struct net_driver_s *dev)
|
||||
{
|
||||
if (dev && dev->d_txavail)
|
||||
if (dev != NULL && dev->d_txavail != NULL)
|
||||
{
|
||||
/* Notify the device driver that new TX data is available. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user