Message ID | 1347612420-5704-11-git-send-email-stefanha@gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/net/hub.c b/net/hub.c index ac157e3..650a8b4 100644 --- a/net/hub.c +++ b/net/hub.c @@ -97,12 +97,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,