]> git.proxmox.com Git - mirror_qemu.git/commit
slirp: fix clearing ifq_so from pending packets
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 24 Aug 2017 23:35:53 +0000 (01:35 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 30 Aug 2017 22:14:34 +0000 (23:14 +0100)
commit1201d308519f1e915866d7583d5136d03cc1d384
tree92e59d4f0b2d4e2de67ebd412fc54c9a27b0f2c7
parent29c8564a7da63cf427a90213cdd86e99310bb7bf
slirp: fix clearing ifq_so from pending packets

The if_fastq and if_batchq contain not only packets, but queues of packets
for the same socket. When sofree frees a socket, it thus has to clear ifq_so
from all the packets from the queues, not only the first.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
slirp/socket.c