summary refs log tree commit diff stats
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorViktor Kurilko <murlockkinght@gmail.com>2025-08-08 21:29:25 +0700
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-10-05 21:13:11 +0200
commit6d10e021318b16e3e90f98b7b2fa187826e26c0a (patch)
tree1475623643251b4ff4e1c311d0f0aab094146425 /hmp-commands.hx
parentbd6aa0d1e59d71218c3eee055bc8d222c6e1a628 (diff)
downloadfocaccia-qemu-6d10e021318b16e3e90f98b7b2fa187826e26c0a.tar.gz
focaccia-qemu-6d10e021318b16e3e90f98b7b2fa187826e26c0a.zip
Add a feature for mapping a host unix socket to a guest tcp socket
This patch adds the ability to map a host unix socket to a guest tcp socket when
using the slirp backend. This feature was added in libslirp version 4.7.0.

A new syntax for unix socket: -hostfwd=unix:hostpath-[guestaddr]:guestport

Signed-off-by: Viktor Kurilko <murlockkinght@gmail.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Message-ID: <20250808143904.363907-1-murlockkinght@gmail.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx4
1 files changed, 2 insertions, 2 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index 3cace8f1f7..15f6082596 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -1357,8 +1357,8 @@ ERST
     {
         .name       = "hostfwd_add",
         .args_type  = "arg1:s,arg2:s?",
-        .params     = "[netdev_id] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
-        .help       = "redirect TCP or UDP connections from host to guest (requires -net user)",
+        .params     = "[netdev_id] [tcp|udp|unix]:[[hostaddr]:hostport|hostpath]-[guestaddr]:guestport",
+        .help       = "redirect TCP, UDP or UNIX connections from host to guest (requires -net user)",
         .cmd        = hmp_hostfwd_add,
     },
 #endif