nuttx
nuttx copied to clipboard
net/tcp: no need to set tcp_window_scale opt if window less than 65535
Summary
If windows size less than 65535,and we set config of NET_TCP_WINDOW_SCALE,we can see the SYNC and SYNC-ACK packet will set opt of tcp_window_scale which does not meet the standard
Impact
Tcp windows scale
Testing
Testing on Sim by set NET_TCP_WINDOW_SCALE and recv_buf
@Meissi-jian please take a look at @wengzhe comments