mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
slirp: Move smb, redir, tftp and bootp parameters and -net channel
So far a couple of slirp-related parameters were expressed via stand-alone command line options. This it inconsistent and unintuitive. Moreover, it prevents both dynamically reconfigured (host_net_add/ delete) and multi-instance slirp. This patch refactors the configuration by turning -smb, -redir, -tftp and -bootp as well as -net channel into options of "-net user". The old stand-alone command line options are still processed, but no longer advertised. This allows smooth migration of management applications to to the new syntax and also the extension of that syntax later in this series. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
5db4af8bc8
commit
ad196a9d0c
9 changed files with 264 additions and 152 deletions
6
vl.c
6
vl.c
|
@ -5308,14 +5308,14 @@ int main(int argc, char **argv, char **envp)
|
|||
break;
|
||||
#ifdef CONFIG_SLIRP
|
||||
case QEMU_OPTION_tftp:
|
||||
tftp_prefix = optarg;
|
||||
legacy_tftp_prefix = optarg;
|
||||
break;
|
||||
case QEMU_OPTION_bootp:
|
||||
bootp_filename = optarg;
|
||||
legacy_bootp_filename = optarg;
|
||||
break;
|
||||
#ifndef _WIN32
|
||||
case QEMU_OPTION_smb:
|
||||
net_slirp_smb(optarg);
|
||||
net_slirp_smb(optarg);
|
||||
break;
|
||||
#endif
|
||||
case QEMU_OPTION_redir:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue