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

2020-11-10 Thread Jakub Kicinski
On Tue, 10 Nov 2020 08:32:52 +0100 Eric Dumazet wrote: > On Tue, Nov 10, 2020 at 1:16 AM 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

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

2020-11-09 Thread Eric Dumazet
On Tue, Nov 10, 2020 at 1:16 AM 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 v5] 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