qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 4/6] net: net_check_clients() checks only VLAN clien


From: Markus Armbruster
Subject: [Qemu-devel] [PATCH 4/6] net: net_check_clients() checks only VLAN clients, fix
Date: Thu, 11 Feb 2010 14:45:00 +0100

Clients not associated with a VLAN exist since commit d80b9fc6.

Signed-off-by: Markus Armbruster <address@hidden>
---
 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]