aboutgitcodebugslistschat
path: root/test/tcp/git:
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-01-27 19:39:52 +1100
committerStefano Brivio <sbrivio@redhat.com>2026-01-27 12:40:25 +0100
commitcce94e92fb3d2a90730c125f2bad32c9ed51da3f (patch)
tree24a9f491c9ed90e7fc26313341bdd84c76a5c211 /test/tcp/git:
parent07390d1dd9067c90481f93250c032e7a3b9bdb39 (diff)
downloadpasst-cce94e92fb3d2a90730c125f2bad32c9ed51da3f.tar
passt-cce94e92fb3d2a90730c125f2bad32c9ed51da3f.tar.gz
passt-cce94e92fb3d2a90730c125f2bad32c9ed51da3f.tar.bz2
passt-cce94e92fb3d2a90730c125f2bad32c9ed51da3f.tar.lz
passt-cce94e92fb3d2a90730c125f2bad32c9ed51da3f.tar.xz
passt-cce94e92fb3d2a90730c125f2bad32c9ed51da3f.tar.zst
passt-cce94e92fb3d2a90730c125f2bad32c9ed51da3f.zip
tcp: Properly propagate tap-side RST to socket side
When the guest sends a TCP RST, or on certain error conditions, we want to signal the abnormal termination of a TCP connection to the peer with an RST as well. We attempt to do that by close()ing the socket. That doesn't work: a close() will usually send a FIN, rather than an RST. The standard method of forcing an RST on a socket is to set the SO_LINGER socket option with a 0 timeout, then close(). Update the tcp_rst() path to do this, so it forces a socket side RST. Update the handling of a guest side RST to use the same path (minus sending a tap side RST) so that we properly propagate guest RSTs to the peer. Link: https://bugs.passt.top/show_bug.cgi?id=191 Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/tcp/git:')
0 files changed, 0 insertions, 0 deletions