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:
Gregory Nutt
2017-07-07 17:33:44 -06:00
parent d61b551bca
commit 99ef7c6669
5 changed files with 61 additions and 12 deletions
+1 -1
View File
@@ -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. */