mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
net: handle -netdevice options
Same as for -net except for: - only tap, user, vde and socket types are supported - the vlan parameter is not allowed - the name parameter is not allowed but the id parameter is required Patchworks-ID: 35517 Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
a1ea458fdf
commit
f6b134ac30
4 changed files with 95 additions and 39 deletions
2
net.h
2
net.h
|
@ -134,7 +134,7 @@ void net_checksum_calculate(uint8_t *data, int length);
|
|||
extern const char *legacy_tftp_prefix;
|
||||
extern const char *legacy_bootp_filename;
|
||||
|
||||
int net_client_init(Monitor *mon, QemuOpts *opts);
|
||||
int net_client_init(Monitor *mon, QemuOpts *opts, int is_netdev);
|
||||
void net_client_uninit(NICInfo *nd);
|
||||
int net_client_parse(QemuOptsList *opts_list, const char *str);
|
||||
int net_init_clients(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue