Skip to content

forward to unix socket/remove guestfwd

Renzo Davoli requested to merge rd235/libslirp:fwd_unix/remove_guestfwd into master

This merge proposal adds two useful features for the VDE projects (and not only).

  • forward to UNIX socket. (slirp_add_unix) It is similar to slirp_add_exec but instead of spawning a command it opens a UNIX stream socket. It is useful for example to allow X clients running on a VM or in a namespace to use the X-window server of the host. e.g. the diversion of 10.0.2.4:6000 to /tmp/.X11-unix/X0 allows all clients using -display 10.0.2.4:0 to run their graphical interface on the X-server :0 on the host

  • remove (guest addr) forward services: While slirp_remove_hostfwd removes a forward service activated by slirp_add_hostfwd, slirp_add_exec and slirp_add_guestfwd (and the new slirp_add_unix) do not have a remove function. The proposed patch adds the function "slirp_remove_guestfwd".

Merge request reports

Loading