Date: Thu, 4 Sep 2025 20:04:54 GMT From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 9514c46ae270 - stable/14 - tcp: fix handling of TIME WAIT for local TCP connections Message-ID: <202509042004.584K4sdx047056@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=9514c46ae270530a6ca726bf60fd40d3ab44354a commit 9514c46ae270530a6ca726bf60fd40d3ab44354a Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2025-06-13 21:00:36 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2025-09-04 20:04:32 +0000 tcp: fix handling of TIME WAIT for local TCP connections The sysctl-variable net.inet.tcp.nolocaltimewait should affect TCP connections where the remote endpoint is on the local host and not on the local area network. Reported by: cc Reviewed by: cc Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D50830 (cherry picked from commit 49eabd405f661fa3a9f0a005c2e54dc4cad07e48) --- sys/netinet/tcp_timewait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 6fb12ce5380e..0a58bf506a26 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -128,7 +128,7 @@ tcp_twstart(struct tcpcb *tp) if (V_nolocaltimewait && ( #ifdef INET6 - isipv6 ? in6_localaddr(&inp->in6p_faddr) : + isipv6 ? in6_localip(&inp->in6p_faddr) : #endif #ifdef INET in_localip(inp->inp_faddr)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509042004.584K4sdx047056>