mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-03 00:24:37 -07:00
net: pass monitor handle to client init functions
Needed for e.g. looking up a file descriptor name using monitor_get_fd() in net_init_tap() Patchworks-ID: 35509 Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
9844937122
commit
8b077c9f97
1 changed files with 1 additions and 1 deletions
2
net.c
2
net.c
|
|
@ -3021,7 +3021,7 @@ int net_client_init(Monitor *mon, QemuOpts *opts)
|
|||
}
|
||||
|
||||
if (net_client_types[i].init) {
|
||||
return net_client_types[i].init(opts, NULL);
|
||||
return net_client_types[i].init(opts, mon);
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue