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, Aug 10, 2:20 PM
Unknown Object (File)
Sun, Aug 9, 1:31 PM
Unknown Object (File)
Sat, Aug 8, 6:13 PM
Unknown Object (File)
Tue, Aug 4, 3:42 PM
Unknown Object (File)
Mon, Aug 3, 9:41 AM
Unknown Object (File)
Sun, Aug 2, 4:48 AM
Unknown Object (File)
Sun, Aug 2, 12:48 AM
Unknown Object (File)
Fri, Jul 31, 5:33 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