aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2023-02-03 19:33:36 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2023-02-03 19:33:36 +0000
commita9afe0864f8ec8242c97dc21e3dec15570ea44c8 (patch)
tree3a7cbb06cdad7a39be42b37c75e99efa0619d826
parenta9d22cce10b710445aba500c96b6eb43cb5e8323 (diff)
downloadsrc-a9afe0864f8ec8242c97dc21e3dec15570ea44c8.tar.gz
src-a9afe0864f8ec8242c97dc21e3dec15570ea44c8.zip
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.
-rw-r--r--sys/netinet/tcp_usrreq.c10
1 files 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)