Commit fbd1711dac75e19b2ec316aa094d064826ff7408

Authored by balrog
1 parent 45669e00

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
Showing 1 changed file with 3 additions and 3 deletions
... ... @@ -3195,11 +3195,11 @@ int qemu_can_send_packet(VLANClientState *vc1)
3195 3195  
3196 3196 for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
3197 3197 if (vc != vc1) {
3198   - if (vc->fd_can_read && !vc->fd_can_read(vc->opaque))
3199   - return 0;
  3198 + if (vc->fd_can_read && vc->fd_can_read(vc->opaque))
  3199 + return 1;
3200 3200 }
3201 3201 }
3202   - return 1;
  3202 + return 0;
3203 3203 }
3204 3204  
3205 3205 void qemu_send_packet(VLANClientState *vc1, const uint8_t *buf, int size)
... ...