aboutsummaryrefslogtreecommitdiff
path: root/slirp/tcp_output.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-02-17 16:26:38 +0100
committerJan Kiszka <jan.kiszka@siemens.com>2012-02-27 14:54:49 +0100
commitb248ede2ef2792d364bd305e5e92e24921c924a8 (patch)
tree4bd6012bdbd243fcd432d4dfae2e75a64c19facd /slirp/tcp_output.c
parent79e7e937bd59ba8c4caaa08963712df2506adf8b (diff)
downloadqemu-b248ede2ef2792d364bd305e5e92e24921c924a8.zip
qemu-b248ede2ef2792d364bd305e5e92e24921c924a8.tar.gz
qemu-b248ede2ef2792d364bd305e5e92e24921c924a8.tar.bz2
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 'slirp/tcp_output.c')
0 files changed, 0 insertions, 0 deletions