net/tcp: Back out part of commit d944388888. I see a few places that say that the maximum receive window size is 32,767 (INT16_MAX), but most say that it is 65,535 (UINT16_MAX).

This commit is contained in:
Gregory Nutt 2018-07-05 17:41:01 -06:00
parent d944388888
commit 5764d5a529
1 changed files with 2 additions and 2 deletions

View File

@ -152,9 +152,9 @@ uint16_t tcp_get_recvwindow(FAR struct net_driver_s *dev)
*/ */
rwnd = (navail * CONFIG_IOB_BUFSIZE) + mss; rwnd = (navail * CONFIG_IOB_BUFSIZE) + mss;
if (rwnd > INT16_MAX) if (rwnd > UINT16_MAX)
{ {
rwnd = INT16_MAX; rwnd = UINT16_MAX;
} }
/* Save the new receive window size */ /* Save the new receive window size */