The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=49eabd405f661fa3a9f0a005c2e54dc4cad07e48
commit 49eabd405f661fa3a9f0a005c2e54dc4cad07e48 Author: Michael Tuexen <tue...@freebsd.org> AuthorDate: 2025-06-13 21:00:36 +0000 Commit: Michael Tuexen <tue...@freebsd.org> CommitDate: 2025-06-13 21:03:02 +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 MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D50830 --- 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 8d77db275310..2b4ae462af89 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -127,7 +127,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)