aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:32 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:50 -0500
commitf13b572cb38ec8c74a0670b3554d48e7cbf20b4b (patch)
treec454e5e7149f11d10212105a63171166333dd25e /qemu-monitor.hx
parentnet: Provide VLAN client lookup helper (diff)
downloadqemu-kvm-f13b572cb38ec8c74a0670b3554d48e7cbf20b4b.tar.gz
qemu-kvm-f13b572cb38ec8c74a0670b3554d48e7cbf20b4b.tar.bz2
qemu-kvm-f13b572cb38ec8c74a0670b3554d48e7cbf20b4b.zip
slirp: Make hostfwd_add/remove multi-instance-aware
Extend the syntax of hostfwd_add/remove to optionally take a tuple of VLAN ID and slirp stack name. If those are omitted, the commands will continue to work on the first registered slirp stack. 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, 4 insertions, 4 deletions
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index e320f9f2f..66c6ad901 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -536,11 +536,11 @@ Remove host VLAN client.
ETEXI
#ifdef CONFIG_SLIRP
- { "hostfwd_add", "s", net_slirp_hostfwd_add,
- "[tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
+ { "hostfwd_add", "ss?s?", net_slirp_hostfwd_add,
+ "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
"redirect TCP or UDP connections from host to guest (requires -net user)" },
- { "hostfwd_remove", "s", net_slirp_hostfwd_remove,
- "[tcp|udp]:[hostaddr]:hostport",
+ { "hostfwd_remove", "ss?s?", net_slirp_hostfwd_remove,
+ "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
"remove host-to-guest TCP or UDP redirection" },
#endif
STEXI