aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-08 19:58:19 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-15 09:32:00 -0500
commit8b077c9f975c04dadaa2bb911567997afdfb6bd6 (patch)
tree017f26baed95c811ffa07e5d6fcbbc0d7fa6cadb /net.c
parenthotplug: safely iterate bus's sibling list while removing a device (diff)
downloadqemu-kvm-8b077c9f975c04dadaa2bb911567997afdfb6bd6.tar.gz
qemu-kvm-8b077c9f975c04dadaa2bb911567997afdfb6bd6.tar.bz2
qemu-kvm-8b077c9f975c04dadaa2bb911567997afdfb6bd6.zip
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>
Diffstat (limited to 'net.c')
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index e93017d3e..898b9afaa 100644
--- a/net.c
+++ b/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;
}