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
F25182827: D3655.diff
Fri, Apr 3, 17:34
F25177346: D3655.id9467.diff
Fri, Apr 3, 09:20
F25171244: D3655.id9468.diff
Fri, Apr 3, 01:47
F25171243: D3655.id9467.diff
Fri, Apr 3, 01:47
F25171216: D3655.diff
Fri, Apr 3, 01:44
F25168347: D3655.diff
Thu, Apr 2, 20:47
Unknown Object (File)
Thu, Apr 2, 11:32
Unknown Object (File)
Mon, Mar 30, 09:11
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 Not Applicable
Unit
Tests Not Applicable