git: 0312eb44fb32 - stable/14 - tcp.fastopen.client_enable: Fix documented default

Alexander Ziaee <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a750b69.1fdeb.15234a8f__6357.66652865044$1786055813$gmane$org@gitrepo.freebsd.org>
The branch stable/14 has been updated by ziaee:

URL: https://cgit.FreeBSD.org/src/commit/?id=0312eb44fb32b42f1f73b7275ab4bca49ca22af7

commit 0312eb44fb32b42f1f73b7275ab4bca49ca22af7
Author:     Matteo Riondato <[email protected]>
AuthorDate: 2026-06-17 14:59:01 +0000
Commit:     Alexander Ziaee <[email protected]>
CommitDate: 2026-08-06 22:30:15 +0000

    tcp.fastopen.client_enable: Fix documented default
    
    The default value has been 1 since June 2018, but the docs were not
    updated to reflect the change.
    
    MFC after:      3 days
    Reviewed by:    ziaee
    Fixes:          af4da5865557 (Enable TCP_FASTOPEN by default)
    Signed-off-by:  Matteo Riondato <[email protected]>
    Closes:         https://github.com/freebsd/freebsd-src/pull/2285
    
    (cherry picked from commit 0bc852cc62afcd79fc776f784623c3f2b7691d27)
---
 share/man/man4/tcp.4       | 4 ++--
 sys/netinet/tcp_fastopen.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/man/man4/tcp.4 b/share/man/man4/tcp.4
index edb969be5270..3fb667eca2ce 100644
--- a/share/man/man4/tcp.4
+++ b/share/man/man4/tcp.4
@@ -33,7 +33,7 @@
 .\"
 .\"     From: @(#)tcp.4	8.1 (Berkeley) 6/5/93
 .\"
-.Dd June 26, 2025
+.Dd June 17, 2026
 .Dt TCP 4
 .Os
 .Sh NAME
@@ -598,7 +598,7 @@ On the transition from enabled to disabled, the client cookie cache is cleared
 and disabled.
 The transition from enabled to disabled does not affect any active TFO
 connections in progress; it only prevents new ones from being established.
-The default is 0.
+The default is 1.
 .It Va fastopen.keylen
 The key length in bytes.
 Read-only.
diff --git a/sys/netinet/tcp_fastopen.c b/sys/netinet/tcp_fastopen.c
index 609637b83df3..106fee90b2cd 100644
--- a/sys/netinet/tcp_fastopen.c
+++ b/sys/netinet/tcp_fastopen.c
@@ -84,7 +84,7 @@
  * net.inet.tcp.fastopen.ccache_list (RO)
  *     Print the client cookie cache.
  *
- * net.inet.tcp.fastopen.client_enable (RW, default 0)
+ * net.inet.tcp.fastopen.client_enable (RW, default 1)
  *     When zero, no new active (i.e., client) TFO connections can be
  *     created.  On the transition from enabled to disabled, the client
  *     cookie cache is cleared and disabled.  The transition from enabled to
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.