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
F84305865: D21666.id.diff
Wed, May 22, 2:39 AM
Unknown Object (File)
Apr 12 2024, 6:56 AM
Unknown Object (File)
Apr 11 2024, 10:31 PM
Unknown Object (File)
Apr 11 2024, 10:30 PM
Unknown Object (File)
Apr 11 2024, 1:43 PM
Unknown Object (File)
Apr 2 2024, 2:06 AM
Unknown Object (File)
Jan 18 2024, 3:24 AM
Unknown Object (File)
Dec 22 2023, 9:36 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 26509