anchao commented on a change in pull request #4070: URL: https://github.com/apache/incubator-nuttx/pull/4070#discussion_r664403991
########## File path: net/sixlowpan/sixlowpan_tcpsend.c ########## @@ -258,7 +258,12 @@ static int sixlowpan_tcp_header(FAR struct tcp_conn_s *conn, /* Update the TCP received window based on I/O buffer availability */ uint32_t rcvseq = tcp_getsequence(conn->rcvseq); - uint16_t recvwndo = tcp_get_recvwindow(dev, conn); + uint32_t recvwndo = tcp_get_recvwindow(dev, conn); + + if (recvwndo > UINT16_MAX) + { + recvwndo = UINT16_MAX; + } Review comment: Yes, the current sixlowpan stack does not support optdata: https://github.com/apache/incubator-nuttx/blob/b901f22c27bb26630a1289605466b04b96707050/net/sixlowpan/sixlowpan_tcpsend.c#L231 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org