aboutgitcodebugslistschat
path: root/fwd.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-02-28 22:25:13 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-02-29 09:48:09 +0100
commitf0e2a6b8c984f7633f38d4ab2e46666c6d969962 (patch)
tree7793516da6d46d9c2265c8796104b9d192d862e9 /fwd.h
parentf4e5d73684d6e92eeadfe2a84d92a06d20312a76 (diff)
downloadpasst-f0e2a6b8c984f7633f38d4ab2e46666c6d969962.tar
passt-f0e2a6b8c984f7633f38d4ab2e46666c6d969962.tar.gz
passt-f0e2a6b8c984f7633f38d4ab2e46666c6d969962.tar.bz2
passt-f0e2a6b8c984f7633f38d4ab2e46666c6d969962.tar.lz
passt-f0e2a6b8c984f7633f38d4ab2e46666c6d969962.tar.xz
passt-f0e2a6b8c984f7633f38d4ab2e46666c6d969962.tar.zst
passt-f0e2a6b8c984f7633f38d4ab2e46666c6d969962.zip
tcp_splice: Make tcp_splice_connect() create its own sockets
Currently creating the connected socket for a splice is split between tcp_splice_conn_from_sock(), which opens the socket, and tcp_splice_connect() which connects it. Alter tcp_splice_connect() to open its own socket based on an address family and pif we pass it. This does require a second conditional on pif, but makes for a more logical split of functionality: tcp_splice_conn_from_sock() picks the target, tcp_splice_connect() creates the connection. While we're there improve reporting of errors Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'fwd.h')
0 files changed, 0 insertions, 0 deletions