diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-05-13 17:18:20 +1000 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-27 10:17:18 +0200 |
| commit | 98e3c015b3791ff55381e5ee687f541721d1695e (patch) | |
| tree | ddc88853aba8c5b20a75bfb984e72cd62634e586 /test/tcp | |
| parent | 038c51e324695b65c154bc0eee30bd19a7423ad2 (diff) | |
| download | passt-98e3c015b3791ff55381e5ee687f541721d1695e.tar passt-98e3c015b3791ff55381e5ee687f541721d1695e.tar.gz passt-98e3c015b3791ff55381e5ee687f541721d1695e.tar.bz2 passt-98e3c015b3791ff55381e5ee687f541721d1695e.tar.lz passt-98e3c015b3791ff55381e5ee687f541721d1695e.tar.xz passt-98e3c015b3791ff55381e5ee687f541721d1695e.tar.zst passt-98e3c015b3791ff55381e5ee687f541721d1695e.zip | |
tcp, tcp_splice: Make helper for setting SO_LINGER socket option
Both spliced and non-spliced TCP in some cases set the SO_LINGER socket
option in order to to force a TCP RST on a socket side connection. In each
case we open code the setsockopt() logic. We're shortly going to add
another place that needs this, so move the setsockopt() and error handling
logic into a shared helper.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/tcp')
0 files changed, 0 insertions, 0 deletions
