aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-02 13:31:53 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-02 13:31:53 +0000
commitfbd1711dac75e19b2ec316aa094d064826ff7408 (patch)
tree048cae26e6f0ba105adb0f9d7dafe33fd4fae885 /vl.c
parent45669e0048cfbb99f07fe35270a5dbc7d7ad5cd6 (diff)
Fix qemu_can_send_packet(), makes DHCP with multiple nics work - patch by Jason Wessel.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3040 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vl.c b/vl.c
index c556aa60d2..1539908d33 100644
--- a/vl.c
+++ b/vl.c
@@ -3195,11 +3195,11 @@ int qemu_can_send_packet(VLANClientState *vc1)
for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
if (vc != vc1) {
- if (vc->fd_can_read && !vc->fd_can_read(vc->opaque))
- return 0;
+ if (vc->fd_can_read && vc->fd_can_read(vc->opaque))
+ return 1;
}
}
- return 1;
+ return 0;
}
void qemu_send_packet(VLANClientState *vc1, const uint8_t *buf, int size)