From 8b077c9f975c04dadaa2bb911567997afdfb6bd6 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Thu, 8 Oct 2009 19:58:19 +0100 Subject: [PATCH] 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 Signed-off-by: Anthony Liguori --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index e93017d3e8..898b9afaa0 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; } -- 2.30.2