diff --git a/include/nuttx/net/tcp.h b/include/nuttx/net/tcp.h index 5b25e7a3bba..3b62d4a29e7 100644 --- a/include/nuttx/net/tcp.h +++ b/include/nuttx/net/tcp.h @@ -472,19 +472,6 @@ int tcp_backlogdelete(FAR struct tcp_conn_s *conn, # define tcp_backlogremove(conn) (NULL) #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 * TCP connection. */ diff --git a/net/tcp/tcp_input.c b/net/tcp/tcp_input.c index 8d54b1b18dc..49455febc37 100644 --- a/net/tcp/tcp_input.c +++ b/net/tcp/tcp_input.c @@ -674,7 +674,7 @@ found: /* 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 - * 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. */ diff --git a/net/tcp/tcp_send.c b/net/tcp/tcp_send.c index d9873818e26..4e84d667d69 100644 --- a/net/tcp/tcp_send.c +++ b/net/tcp/tcp_send.c @@ -190,7 +190,7 @@ static void tcp_sendcommon(FAR struct net_driver_s *dev, 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. */