Re: [PATCH net v4] net: Update window_clamp if SOCK_RCVBUF is set

2020-11-09 Thread Eric Dumazet
On Mon, Nov 9, 2020 at 6:18 PM Mao Wenan wrote: > > When net.ipv4.tcp_syncookies=1 and syn flood is happened, > cookie_v4_check or cookie_v6_check tries to redo what > tcp_v4_send_synack or tcp_v6_send_synack did, > rsk_window_clamp will be changed if SOCK_RCVBUF is set, > which will make

[PATCH net v4] net: Update window_clamp if SOCK_RCVBUF is set

2020-11-09 Thread Mao Wenan
When net.ipv4.tcp_syncookies=1 and syn flood is happened, cookie_v4_check or cookie_v6_check tries to redo what tcp_v4_send_synack or tcp_v6_send_synack did, rsk_window_clamp will be changed if SOCK_RCVBUF is set, which will make rcv_wscale is different, the client still operates with initial