From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfZSA-0004e3-1L for qemu-devel@nongnu.org; Thu, 11 Feb 2010 08:51:34 -0500 Received: from [199.232.76.173] (port=57699 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfZS9-0004dg-EW for qemu-devel@nongnu.org; Thu, 11 Feb 2010 08:51:33 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfZS7-0006en-MD for qemu-devel@nongnu.org; Thu, 11 Feb 2010 08:51:33 -0500 Received: from mx20.gnu.org ([199.232.41.8]:46431) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NfZS6-0006Wy-V6 for qemu-devel@nongnu.org; Thu, 11 Feb 2010 08:51:31 -0500 Received: from oxygen.pond.sub.org ([213.239.205.148]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfZM0-0005NF-QE for qemu-devel@nongnu.org; Thu, 11 Feb 2010 08:45:13 -0500 Received: from blackfin.pond.sub.org (pD951BCD9.dip.t-dialin.net [217.81.188.217]) by oxygen.pond.sub.org (Postfix) with ESMTPA id E6E442DD304 for ; Thu, 11 Feb 2010 14:45:03 +0100 (CET) From: Markus Armbruster Date: Thu, 11 Feb 2010 14:45:00 +0100 Message-Id: <1265895902-15664-5-git-send-email-armbru@redhat.com> In-Reply-To: <1265895902-15664-1-git-send-email-armbru@redhat.com> References: <1265895902-15664-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 4/6] net: net_check_clients() checks only VLAN clients, fix List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Mark McLoughlin Clients not associated with a VLAN exist since commit d80b9fc6. Signed-off-by: Markus Armbruster --- net.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index 509f074..fb425e3 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) -- 1.6.6