From patchwork Thu Feb 11 13:45:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 45131 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 886F2B7C7E for ; Fri, 12 Feb 2010 01:07:28 +1100 (EST) Received: from localhost ([127.0.0.1]:45352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfZhF-00044c-Lo for incoming@patchwork.ozlabs.org; Thu, 11 Feb 2010 09:07:09 -0500 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) Received: by blackfin.pond.sub.org (Postfix, from userid 500) id 300D125A; Thu, 11 Feb 2010 14:45:03 +0100 (CET) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Thu, 11 Feb 2010 14:45:00 +0100 Message-Id: <1265895902-15664-5-git-send-email-armbru@redhat.com> X-Mailer: git-send-email 1.6.6 In-Reply-To: <1265895902-15664-1-git-send-email-armbru@redhat.com> References: <1265895902-15664-1-git-send-email-armbru@redhat.com> X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: Mark McLoughlin Subject: [Qemu-devel] [PATCH 4/6] net: net_check_clients() checks only VLAN clients, fix X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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)