]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared: extract `socket_forward_new()` helper from socket-proxyd 41168/head
authorMichael Vogt <michael@amutable.com>
Wed, 18 Mar 2026 10:38:48 +0000 (11:38 +0100)
committerMichael Vogt <michael@amutable.com>
Fri, 20 Mar 2026 09:13:34 +0000 (10:13 +0100)
commit9a708c5115d8b10f4ea21b9e16ef47c008ddcdc9
tree6145fc1c79df8c1bfdef612284e88afb6e50d2dc
parent541622dfc64ba5b887a7ad099982b943c3883375
shared: extract `socket_forward_new()` helper from socket-proxyd

This commit extracts the socket forwarding code from the existing
socket-proxyd into a new shared helper that will be used by the
varlinkctl protocol upgrade support code and is used as is in
the socket-proxyd.c.

It tries to keep the changes as small as possible, its mostly
renaming like:
* connection_create_pipes -> socket_forward_create_pipes
* connection_shovel -> socket_forward_shovel
* connection_enable_event_sources -> socket_forward_enable_event_sources
* traffic_cb -> socket_forward_traffic_cb

and a new socket_forward_new() that creates/starts the forwarding.

All log_error_errno() got downgraded to log_debug_errno().
mkosi/mkosi.sanitizers/mkosi.postinst
src/shared/meson.build
src/shared/socket-forward.c [new file with mode: 0644]
src/shared/socket-forward.h [new file with mode: 0644]
src/socket-proxy/socket-proxyd.c