Page MenuHomeFreeBSD

tcp: disable nolocaltimewait and deprecate it
ClosedPublic

Authored by tuexen on Jun 26 2025, 7:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 6, 5:49 AM
Unknown Object (File)
Sun, Apr 5, 12:31 AM
Unknown Object (File)
Fri, Mar 20, 1:06 PM
Unknown Object (File)
Thu, Mar 19, 2:46 AM
Unknown Object (File)
Feb 16 2026, 1:18 AM
Unknown Object (File)
Feb 8 2026, 12:37 AM
Unknown Object (File)
Dec 13 2025, 4:52 PM
Unknown Object (File)
Dec 11 2025, 8:22 PM
Subscribers

Details

Summary

Set the default value of the sysctl-variable net.inet.tcp.nolocaltimewait to 0. This will make the behavior compliant with RFC 9293. Furthermore document that using the sysctl-variable is deprecated and will be removed in FreeBSD 16.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

We could also use SYSCTL_PROC() instead of SYSCTL_BOOL() and then add gone_in() to emphasis that the sysctl-variable is deprecated. Just let me know if this is wanted.

Please do! In the past we (at least me & Igor Sysoev) promoted the use of sysctl, so I expect there is a number for people that have it in /etc/sysctl.conf.

Add deprecation notice as suggested by gleb.

We could also use SYSCTL_PROC() instead of SYSCTL_BOOL() and then add gone_in() to emphasis that the sysctl-variable is deprecated. Just let me know if this is wanted.

Please do! In the past we (at least me & Igor Sysoev) promoted the use of sysctl, so I expect there is a number for people that have it in /etc/sysctl.conf.

Done.

This revision is now accepted and ready to land.Jun 27 2025, 5:23 PM