summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2009-05-26 13:03:26 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-27 09:46:12 -0500
commitc1261d8d1617d8cf5722039a59ebb66c310f3aea (patch)
tree8aad15c7b36255d671f3911886b9c0985ee73f28 /monitor.c
parent8a43b1ea7fd02a8e9a5c5ef58017b1bd059663bb (diff)
downloadqemu-c1261d8d1617d8cf5722039a59ebb66c310f3aea.tar.gz
User Networking: Enable removal of redirections
Using the new host_net_redir command you can easily create redirections on the fly while your VM is running. While that's great, it's missing the removal of redirections, in case you want to have a port closed again at a later point in time. This patch adds support for removal of redirections. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 0f38c71b11..dbab3de827 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1759,8 +1759,9 @@ static const mon_cmd_t mon_cmds[] = {
{ "host_net_remove", "is", net_host_device_remove,
"vlan_id name", "remove host VLAN client" },
#ifdef CONFIG_SLIRP
- { "host_net_redir", "s", net_slirp_redir,
- "[tcp|udp]:host-port:[guest-host]:guest-port", "redirect TCP or UDP connections from host to guest (requires -net user)" },
+ { "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" },
#endif
{ "balloon", "i", do_balloon,
"target", "request VM to change it's memory allocation (in MB)" },