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)
Sun, Oct 12, 10:22 AM
Unknown Object (File)
Sun, Oct 12, 10:22 AM
Unknown Object (File)
Sun, Oct 12, 10:22 AM
Unknown Object (File)
Sat, Oct 11, 11:30 PM
Unknown Object (File)
Sat, Oct 4, 3:39 AM
Unknown Object (File)
Tue, Sep 30, 3:13 PM
Unknown Object (File)
Mon, Sep 22, 9:09 PM
Unknown Object (File)
Sep 7 2025, 10:41 AM
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