]> git.proxmox.com Git - qemu.git/blobdiff - net/hub.c
monitor: move include files to include/monitor/
[qemu.git] / net / hub.c
index ac157e32eed371181a670fea6f0bfb660f020aab..81a73b54a72e7db960ba05f3b04f07d709c73079 100644 (file)
--- a/net/hub.c
+++ b/net/hub.c
@@ -12,8 +12,9 @@
  *
  */
 
-#include "monitor.h"
-#include "net.h"
+#include "monitor/monitor.h"
+#include "net/net.h"
+#include "clients.h"
 #include "hub.h"
 #include "iov.h"
 
@@ -97,12 +98,12 @@ static int net_hub_port_can_receive(NetClientState *nc)
             continue;
         }
 
-        if (!qemu_can_send_packet(&port->nc)) {
-            return 0;
+        if (qemu_can_send_packet(&port->nc)) {
+            return 1;
         }
     }
 
-    return 1;
+    return 0;
 }
 
 static ssize_t net_hub_port_receive(NetClientState *nc,