Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2023 19:34:22 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a9afe0864f8e - main - tcp: bring comment for tcp_connect() up to date
Message-ID:  <202302031934.313JYMl4041468@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius:

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

commit a9afe0864f8ec8242c97dc21e3dec15570ea44c8
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2023-02-03 19:33:36 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2023-02-03 19:33:36 +0000

    tcp: bring comment for tcp_connect() up to date
    
    We no longer use in_pcbbind() since 25102351509.  The comment about
    truncating old TIME-WAIT describes a code that had been removed back
    in 2004 in c94c54e4df9a.
---
 sys/netinet/tcp_usrreq.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 6f979c053a5c..b89cdd30a825 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1387,13 +1387,9 @@ struct protosw tcp6_protosw = {
 #ifdef INET
 /*
  * Common subroutine to open a TCP connection to remote host specified
- * by struct sockaddr_in in mbuf *nam.  Call in_pcbbind to assign a local
- * port number if needed.  Call in_pcbconnect_setup to do the routing and
- * to choose a local host address (interface).  If there is an existing
- * incarnation of the same connection in TIME-WAIT state and if the remote
- * host was sending CC options and if the connection duration was < MSL, then
- * truncate the previous TIME-WAIT state and proceed.
- * Initialize connection parameters and enter SYN-SENT state.
+ * by struct sockaddr_in.  Call in_pcbconnect_setup() to choose local
+ * host address and assign a local port number if needed.  Initialize
+ * connection parameters and enter SYN-SENT state.
  */
 static int
 tcp_connect(struct tcpcb *tp, struct sockaddr_in *sin, struct thread *td)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302031934.313JYMl4041468>