From: Markus Armbruster Date: Thu, 11 Feb 2010 13:45:00 +0000 (+0100) Subject: net: net_check_clients() checks only VLAN clients, fix X-Git-Tag: v0.13.0-rc0~1360 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=efe32fdde15e5764cfbc68cb2d61737681b1e096;p=qemu.git net: net_check_clients() checks only VLAN clients, fix Clients not associated with a VLAN exist since commit d80b9fc6. Signed-off-by: Markus Armbruster Signed-off-by: Anthony Liguori --- diff --git a/net.c b/net.c index 509f074c3..fb425e397 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)