[Midnightbsd-cvs] [MidnightBSD/src] 511ecb: tcp: Correctly compute the retransmit length f...
Lucas Holt
noreply at github.com
Thu Sep 8 18:32:18 EDT 2022
Branch: refs/heads/stable/2.2
Home: https://github.com/MidnightBSD/src
Commit: 511ecb476b711ffb0572425c07baf280ad238aed
https://github.com/MidnightBSD/src/commit/511ecb476b711ffb0572425c07baf280ad238aed
Author: Lucas Holt <luke at foolishgames.com>
Date: 2022-09-08 (Thu, 08 Sep 2022)
Changed paths:
M sys/netinet/tcp_output.c
M sys/netinet/tcp_seq.h
Log Message:
-----------
tcp: Correctly compute the retransmit length for all 64-bit platforms.
When the TCP sequence number subtracted is greater than 2**32 minus
the window size, or 2**31 minus the window size, the use of unsigned
long as an intermediate variable, may result in an incorrect retransmit
length computation on all 64-bit platforms.
While at it create a helper macro to facilitate the computation of
the difference between two TCP sequence numbers.
Obtained from: FreeBSD 11 stable / June 2022
More information about the Midnightbsd-cvs
mailing list