HomeFreeBSD

tcp: fix computation of offset

Description

tcp: fix computation of offset

Only update the offset if actually retransmitting from the
scoreboard. If not done correctly, this may result in
trying to (re)-transmit data not being being in the socket
buffe and therefore resulting in a panic.

PR: 264257
PR: 263445
PR: 260393
Reviewed by: rscheff@
MFC after: 3 days
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D36626

(cherry picked from commit 6d9e911fbadf3b409802a211c1dae9b47cb5a2b8)

Details

Provenance
tuexenAuthored on Sep 19 2022, 10:42 AM
rscheffCommitted on Sep 25 2022, 8:54 AM
Differential Revision
D36626: Fix offset computation
Parents
rG13798b407893: Update SEE ALSO sections for resolver.{3,5} and hosts.5
Branches
Unknown
Tags
Unknown