Page MenuHomeDevCentral

Enable TCP Fast Open on FreeBSD for role dns
ClosedPublic

Authored by dereckson on Sep 3 2025, 19:01.
Tags
None
Referenced Files
F12313914: D3655.id9467.diff
Wed, Oct 22, 06:27
Unknown Object (File)
Tue, Oct 21, 04:59
Unknown Object (File)
Tue, Oct 21, 04:45
Unknown Object (File)
Tue, Oct 21, 04:08
Unknown Object (File)
Mon, Oct 20, 22:10
Unknown Object (File)
Mon, Oct 20, 14:59
Unknown Object (File)
Mon, Oct 20, 14:59
Unknown Object (File)
Sun, Oct 19, 22:51
Subscribers
None
Tokens
"Y So Serious" token, awarded by dereckson.

Details

Summary

While FreeBSD 14 kernel is built by default with support for
TCP Fast Open (option TCP_RFC7413), it's only enabled on boot
for clients, not for servers.

As Knot uses TCP Fast Open, we need to explicitly enable it.

Solves the following issue:

Sep  3 18:35:18 dns-001 knot[81075]: warning:
failed to enable TCP Fast Open on 178.32.70.109@53 (unknown system error)

References:

  • tcp(4)
Test Plan
  • sysctl logic tested on WindRiver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
knot-tcp-fast-open
Build Status
Buildable 5854
Build 6136: arc lint + arc unit