summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-11 14:45:00 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-23 14:07:58 -0600
commitb93c5c84c858f0372b4e457dec28c4a01a50466b (patch)
treeacf0562d7f0f1935040a39954f512b84880cf3c9
parentf203baee5bd06e06278ec6b98e3a649ed5d8f20e (diff)
downloadqemu-b93c5c84c858f0372b4e457dec28c4a01a50466b.tar.gz
net: net_check_clients() checks only VLAN clients, fix
Clients not associated with a VLAN exist since commit d80b9fc6. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit efe32fdde15e5764cfbc68cb2d61737681b1e096)
-rw-r--r--net.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net.c b/net.c
index 509f074c3d..fb425e397f 100644
--- a/net.c
+++ b/net.c
@@ -1300,6 +1300,13 @@ void net_check_clients(void)
"Warning: vlan %d is not connected to host network\n",
vlan->id);
}
+ QTAILQ_FOREACH(vc, &non_vlan_clients, next) {
+ if (!vc->peer) {
+ fprintf(stderr, "Warning: %s %s has no peer\n",
+ vc->info->type == NET_CLIENT_TYPE_NIC ? "nic" : "netdev",
+ vc->name);
+ }
+ }
}
static int net_init_client(QemuOpts *opts, void *dummy)