mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
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
This commit is contained in:
parent
45669e0048
commit
fbd1711dac
6
vl.c
6
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)
|
||||
|
Loading…
Reference in New Issue
Block a user