Skip to content

Conversation

@LennSar
Copy link

@LennSar LennSar commented Jan 9, 2026

in case of multiple threads handling multiple packets it might happen that the sequence number of a paket changes before it got send out. In that case the checksum for that packet needs to be recalculated and the new sequence number must be added to the tcp header.
When this is done, the size of the TCP Header will be removed from the available headspace and length twice for a packet which later on results in an assertion because the prepend_ptr will be smaller then the start_ptr.
This is fixed by adding the header size before hitting the continue statement of the for loop.

sequence number changed i.e. due to race condition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant