MFC after: 3 days
Sponsored by: NVIDIA Networking
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
Should we generally use the SEQ_SUB macro throughout, to prevent casting issues? (mechanically replace all instances, where a type tcpseq is subtracted from another type tcpseq?)
Comment Actions
Maybe. Most places where TCP sequence numbers are subtracted, they end up in integers, so then there is no problem.
Comment Actions
You shouldn't end up doing this calculation on ACKs from below the left edge of the window (th_ack < snd_una)
Comment Actions
During normal processing, th_ack should always be in the range snd_una ... snd_max. All cases outside of this window should be addressed before normal congestion-control processing. The cases with explicit unsigned int typcasting should be adressed for formal reasons, but generally, those calculations should return positive values.