Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> CC: Fabien Chouteau <[email protected]> Signed-off-by: Jan Kiszka <[email protected]>
- Loading branch information