From nobody Fri Jun 13 21:03:09 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bJsLP2gStz516sv; Fri, 13 Jun 2025 21:03:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bJsLP1YXkz3JLV; Fri, 13 Jun 2025 21:03:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749848589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UwDn2o4Gt1CdUNTJOdPzegghdqfCobTU3JNtkDXDznQ=; b=jj/H2gMKujp7disdriboI1F5G0slNvyQpdm09jV1eDtYqpZDjMDeZVeLhNv/EGaL+PAk0D 2Vz7bVWYUU0486Urt15rZqNd94wjWlzt1sDY/p8Mq0OIWu6GA9ApUxWJGwy4369y3irrZ+ 43WFdQ4QP1GhVJFFUahZ09iiRPASVrak0iE5KYFuMUnz0k9qKcpKcGr1tqQ1/PsDDleDRi dp5SmxH8HM+yIJxeA2+VgX5ui5PF1NLt5zIYNopUxjqcnquvDqfCGYNEsinW/1Ml+GYow1 fRltuV5nuOjzRGxcaDWe3Wjtim213CTSOsxNrzVx+Ykx+nOAGcgCCt5Gvj0ouw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749848589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UwDn2o4Gt1CdUNTJOdPzegghdqfCobTU3JNtkDXDznQ=; b=YznWUuF0H9Lr6sGQ991YJm0u/6/K/moN4W23HPUMmRlALGp0oiCTwkfe/uA/qbKqkEsIf9 4TfCuqq2/d9F9NV9gew0pd9qu+CuIphCDTTQxAnm69SE4vcakuUTi8rK+Q5O1SMv7k63z5 rfo7cq6hR8zjn+D87cvLixS9L2Y5ib0ilePb6ALPEv16NH6guM5jYECVGxqGo+mSz7uLZM k44V2VgXcNWWln5axcdimeGQsbQtBdjpoRWDSMi0MzdvNLQvu/u09vb2+Vmf8eNEZZKL4V hHwcw/w9IknBBktM86dSO9ZaIg053yB0kRA13OAWgkoEj2DhQMuRhhurQRcnbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1749848589; a=rsa-sha256; cv=none; b=sH1k62yyBiNCzhSCVbtke3U7JX5I9YpPqMe9jLX5+ZMlAkIol5UGJZZTkqe9TQZE4GW593 VXji2kugg9N9EXGaCG6KOklhLoFQ7UUmY7OIT8xy91yyj87DCc13a/f7UyDjvYNoYPD6Q2 VxILOCG5rsI9Dj+T5IR+2qouxzqA9+uCeTVimgAMBHxo8wHT+xrjxaPBcNKUgwgAkAqXZE PuyC1dS+n4k9zxwHu2bngLXYdqPC6vo/W1anlDXZAylpo293/UxXO8h1JCOJl9ZHzBkYii fB26OUZRnNZZ5PBcSpyjdFbRlU3br7LMiZPjDWWlGchBToAUzxJY79Vx9wW1EA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bJsLP14yqz1CZ2; Fri, 13 Jun 2025 21:03:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55DL398r005463; Fri, 13 Jun 2025 21:03:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55DL39TB005460; Fri, 13 Jun 2025 21:03:09 GMT (envelope-from git) Date: Fri, 13 Jun 2025 21:03:09 GMT Message-Id: <202506132103.55DL39TB005460@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 49eabd405f66 - main - tcp: fix handling of TIME WAIT for local TCP connections List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 49eabd405f661fa3a9f0a005c2e54dc4cad07e48 Auto-Submitted: auto-generated The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=49eabd405f661fa3a9f0a005c2e54dc4cad07e48 commit 49eabd405f661fa3a9f0a005c2e54dc4cad07e48 Author: Michael Tuexen AuthorDate: 2025-06-13 21:00:36 +0000 Commit: Michael Tuexen 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)