K 10 svn:author V 8 hselasky K 8 svn:date V 27 2022-06-06T20:05:15.073054Z K 7 svn:log V 710 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. Differential Revision: https://reviews.freebsd.org/D35388 Reviewed by: rscheff Sponsored by: NVIDIA Networking (cherry picked from commit 28173d49dccb91e50be9c401dbad1da908a5dc75) Git Hash: 7169d3610d1cb2614aeebb8ae51f2da0314d27f2 Git Author: hselasky@FreeBSD.org END