Page MenuHomeFreeBSD

Let the RACK stack take IP options into account when computing the space for user data in TCP segments
ClosedPublic

Authored by tuexen on Sep 15 2019, 5:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 14, 9:27 PM
Unknown Object (File)
Sat, Mar 14, 9:21 PM
Unknown Object (File)
Thu, Mar 12, 2:34 PM
Unknown Object (File)
Thu, Mar 12, 2:28 PM
Unknown Object (File)
Mon, Mar 9, 5:00 PM
Unknown Object (File)
Tue, Feb 24, 6:49 AM
Unknown Object (File)
Feb 10 2026, 12:19 PM
Unknown Object (File)
Feb 9 2026, 1:14 PM
Subscribers

Details

Summary

When the RACK stack computes the space for user data in a TCP segment, it wasn't taking the IP level options into account. This patch fixes this. It also corrects a KASSERT and adds the protection code missing also from the default stack and to be added in D21665 .
Without this fix, IP level fragmentation would occur.

Test Plan

Check with the following test program that no IP level fragmentation occurs (use RACK as the default stack):

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable