summaryrefslogtreecommitdiff
path: root/qemu-monitor.hx
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:28 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:45 -0500
commit082ffb01f5c1c00dbc9f126fa420a1d723707deb (patch)
tree40f742ab62041f18c8c5cd42f7b282616fb8fd4b /qemu-monitor.hx
parent4943edac44ef6da008a5600e753ff5b6f095bbaf (diff)
downloadqemu-082ffb01f5c1c00dbc9f126fa420a1d723707deb.tar.gz
qemu-082ffb01f5c1c00dbc9f126fa420a1d723707deb.tar.bz2
qemu-082ffb01f5c1c00dbc9f126fa420a1d723707deb.zip
slirp: Rework monitor commands for host forwarding
Improve the monitor interface for adding and removing host forwarding rules by splitting it up in two commands and rename them to hostfwd_add and hostfwd_remove. Also split up the paths taken for legacy -redir support and the monitor add command as the latter will be extended later on. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-monitor.hx')
-rw-r--r--qemu-monitor.hx8
1 files changed, 5 insertions, 3 deletions
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 090255bd2e..13c98bc9ac 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -536,9 +536,11 @@ Remove host VLAN client.
ETEXI
#ifdef CONFIG_SLIRP
- { "host_net_redir", "ss?", net_slirp_redir,
- "[tcp|udp]:host-port:[guest-host]:guest-port", "redirect TCP or UDP connections from host to guest (requires -net user)\n"
- "host_net_redir remove [tcp:|udp:]host-port -- remove redirection" },
+ { "hostfwd_add", "s", net_slirp_hostfwd_add,
+ "[tcp|udp]:hostport:[guestaddr]:guestport",
+ "redirect TCP or UDP connections from host to guest (requires -net user)" },
+ { "hostfwd_remove", "s", net_slirp_hostfwd_remove,
+ "[tcp|udp]:hostport", "remove host-to-guest TCP or UDP redirection" },
#endif
STEXI
@item host_net_redir