Re: [PATCH] tcp: add an ability to dump and restore window parameters

2016-06-30 Thread David Miller
From: Andrey Vagin Date: Mon, 27 Jun 2016 15:33:56 -0700 > We found that sometimes a restored tcp socket doesn't work. > > A reason of this bug is incorrect window parameters and in this case > tcp_acceptable_seq() returns tcp_wnd_end(tp) instead of tp->snd_nxt. The > other side drops packets wi

[PATCH] tcp: add an ability to dump and restore window parameters

2016-06-27 Thread Andrey Vagin
We found that sometimes a restored tcp socket doesn't work. A reason of this bug is incorrect window parameters and in this case tcp_acceptable_seq() returns tcp_wnd_end(tp) instead of tp->snd_nxt. The other side drops packets with this seq, because seq is less than tp->rcv_nxt ( tcp_sequence() ).