mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
Minor changes from the review of the last PR
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* net/tcp/tcp_devpoll.c
|
||||
* Driver poll for the availability of TCP TX data
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2016 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009, 2016-2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Adapted for NuttX from logic in uIP which also has a BSD-like license:
|
||||
@@ -106,13 +106,18 @@ void tcp_poll(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn)
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_NET_IPv6) && defined(CONFIG_NET_IPv4)
|
||||
if(conn->domain == PF_INET) {
|
||||
if (conn->domain == PF_INET)
|
||||
{
|
||||
tcp_ipv4_select(dev);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
tcp_ipv6_select(dev);
|
||||
}
|
||||
}
|
||||
|
||||
#elif defined(CONFIG_NET_IPv4)
|
||||
tcp_ipv4_select(dev);
|
||||
|
||||
#else /* if defined(CONFIG_NET_IPv6) */
|
||||
tcp_ipv6_select(dev);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user