mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
8a43b1ea7f
commit
c1261d8d16
6 changed files with 71 additions and 5 deletions
2
vl.c
2
vl.c
|
@ -5152,7 +5152,7 @@ int main(int argc, char **argv, char **envp)
|
|||
break;
|
||||
#endif
|
||||
case QEMU_OPTION_redir:
|
||||
net_slirp_redir(NULL, optarg);
|
||||
net_slirp_redir(NULL, optarg, NULL);
|
||||
break;
|
||||
#endif
|
||||
case QEMU_OPTION_bt:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue