Skip to content

Fix kernel version check for TCP_FASTOPEN support#347

Merged
etr merged 2 commits intoetr:masterfrom
BeardOverflow:fix-kernel-check-tcp-fastopen
Jan 27, 2026
Merged

Fix kernel version check for TCP_FASTOPEN support#347
etr merged 2 commits intoetr:masterfrom
BeardOverflow:fix-kernel-check-tcp-fastopen

Conversation

@BeardOverflow
Copy link
Contributor

@BeardOverflow BeardOverflow commented Aug 24, 2025

Identify the Bug

#346

Description of the Change

TCP_FASTOPEN should be enabled based on the Linux kernel version. The current implementation is incorrectly evaluating some kernel versions and is failing to correctly handle minor version lower than 7 for major versions greater than 3.

For example, kernel versions 6.1 and 6.6 were incorrectly excluded, even though they do support TCP_FASTOPEN, just because its minor version is lower than 7.

Alternate Designs

None.

Possible Drawbacks

None.

Verification Process

I have used GitHub search engine and git blame command line.

The first commit introducing this kernel version check was authored 10 years ago: a730551
The first commit suggests Kernel 3.6 to support TCP_FASTOPEN, but a newer commit change it to 3.7: 8786b2f

No more related commits.

Release Notes

  • Fixed kernel version check for TCP_FASTOPEN support
@etr etr merged commit 0e57fd2 into etr:master Jan 27, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants