mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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>
This commit is contained in:
parent
2ad82cf9e2
commit
f3546deb07
4 changed files with 31 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue