mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
NET: Remove uip_restart()
This commit is contained in:
@@ -472,19 +472,6 @@ int tcp_backlogdelete(FAR struct tcp_conn_s *conn,
|
|||||||
# define tcp_backlogremove(conn) (NULL)
|
# define tcp_backlogremove(conn) (NULL)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Restart the current connection, if is has previously been stopped
|
|
||||||
* with uip_stop().
|
|
||||||
*
|
|
||||||
* This function will open the receiver's window again so that we start
|
|
||||||
* receiving data for the current connection.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define uip_restart(conn,f) \
|
|
||||||
do { \
|
|
||||||
(f) |= UIP_NEWDATA; \
|
|
||||||
(conn)->tcpstateflags &= ~UIP_STOPPED; \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
/* Get the current maximum segment size that can be sent on the current
|
/* Get the current maximum segment size that can be sent on the current
|
||||||
* TCP connection.
|
* TCP connection.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -674,7 +674,7 @@ found:
|
|||||||
|
|
||||||
/* If d_len > 0 we have TCP data in the packet, and we flag this
|
/* If d_len > 0 we have TCP data in the packet, and we flag this
|
||||||
* by setting the UIP_NEWDATA flag. If the application has stopped
|
* by setting the UIP_NEWDATA flag. If the application has stopped
|
||||||
* the data flow using uip_stop(), we must not accept any data
|
* the data flow using UIP_STOPPED, we must not accept any data
|
||||||
* packets from the remote host.
|
* packets from the remote host.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -190,7 +190,7 @@ static void tcp_sendcommon(FAR struct net_driver_s *dev,
|
|||||||
|
|
||||||
if (conn->tcpstateflags & UIP_STOPPED)
|
if (conn->tcpstateflags & UIP_STOPPED)
|
||||||
{
|
{
|
||||||
/* If the connection has issued uip_stop(), we advertise a zero
|
/* If the connection has issued UIP_STOPPED, we advertise a zero
|
||||||
* window so that the remote host will stop sending data.
|
* window so that the remote host will stop sending data.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user