diff options
| author | Stefano Brivio <sbrivio@redhat.com> | 2025-08-29 22:11:28 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-09-11 17:03:40 +0200 |
| commit | e86d480be4174fdfec592ba689c2ef03019393f6 (patch) | |
| tree | 10aa4600d64cbe111a979ff6ff6b591b242688c0 /test/lib | |
| parent | 1d502be1a809dcdc4614815f4ec0da77a1ff27ec (diff) | |
| download | passt-e86d480be4174fdfec592ba689c2ef03019393f6.tar passt-e86d480be4174fdfec592ba689c2ef03019393f6.tar.gz passt-e86d480be4174fdfec592ba689c2ef03019393f6.tar.bz2 passt-e86d480be4174fdfec592ba689c2ef03019393f6.tar.lz passt-e86d480be4174fdfec592ba689c2ef03019393f6.tar.xz passt-e86d480be4174fdfec592ba689c2ef03019393f6.tar.zst passt-e86d480be4174fdfec592ba689c2ef03019393f6.zip | |
tcp: Rewind sequence when guest shrinks window to zero
A window shrunk to zero means by definition that anything else that
might be in flight is now out of window. Restart from the currently
acknowledged sequence.
We need to do that both in tcp_tap_window_update(), where we already
check for zero-window updates, as well as in tcp_data_from_tap(),
because we might get one of those updates in a batch of packets that
also contains a non-zero window update.
Suggested-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Tested-by: Paul Holzinger <pholzing@redhat.com>
Reviewed-by: Jon Maloy <jmaloy@redhat.com>
Diffstat (limited to 'test/lib')
0 files changed, 0 insertions, 0 deletions
