diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-02-17 16:26:38 +0100 |
---|---|---|
committer | Jan Kiszka <jan.kiszka@siemens.com> | 2012-02-27 14:54:49 +0100 |
commit | b248ede2ef2792d364bd305e5e92e24921c924a8 (patch) | |
tree | 4bd6012bdbd243fcd432d4dfae2e75a64c19facd /config.h | |
parent | slirp: Clean up ifs_init (diff) | |
download | qemu-kvm-b248ede2ef2792d364bd305e5e92e24921c924a8.tar.gz qemu-kvm-b248ede2ef2792d364bd305e5e92e24921c924a8.tar.bz2 qemu-kvm-b248ede2ef2792d364bd305e5e92e24921c924a8.zip |
slirp: Fix requeuing of batchq packets in if_start
In case we requeued a packet that was the head of a longer session
queue, we failed to restore this ordering. Also, we did not properly
deal with changes to Slirp::next_m.
Instead of a cumbersome roll back, this fix simply avoids any changes
until we know if the packet was actually sent. Both fixes crashes due
to inconsistent queues and simplifies the logic.
Thanks to Zhi Yong Wu who found the reason for these crashes.
CC: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
CC: Fabien Chouteau <chouteau@adacore.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'config.h')
0 files changed, 0 insertions, 0 deletions