Page MenuHomeFreeBSD

tcp: disable nolocaltimewait and deprecate it
ClosedPublic

Authored by tuexen on Jun 26 2025, 7:43 PM.
Tags
None
Referenced Files
F161087978: D51069.diff
Tue, Jun 30, 11:12 AM
Unknown Object (File)
Mon, Jun 22, 3:51 AM
Unknown Object (File)
Sun, Jun 21, 7:08 PM
Unknown Object (File)
Wed, Jun 17, 6:11 PM
Unknown Object (File)
Sun, Jun 14, 8:53 AM
Unknown Object (File)
Sun, Jun 7, 7:00 PM
Unknown Object (File)
Thu, Jun 4, 10:03 AM
Unknown Object (File)
May 30 2026, 9:00 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