git: 9front

Download patch

ref: 4c4c8364df3ff6bf0984139e4484509ee6f6cb8a
parent: 0bfae3882383682b214ac45c41199c53b54d8c63
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Oct 18 14:16:38 EDT 2025

tcp: fix wrong comment about tcpincoming() state, pass correct connection route hint to v6lookup()

--- a/sys/src/9/ip/tcp.c
+++ b/sys/src/9/ip/tcp.c
@@ -1630,7 +1630,7 @@
 	tcpsynackrtt(tcb);
 
 	/* the same as what we sent in SYN,ACK */
-	tcb->mss = tcpmtu(v6lookup(s->p->f, src, dst, s), &tcb->scale, version);
+	tcb->mss = tcpmtu(v6lookup(s->p->f, src, dst, new), &tcb->scale, version);
 
 	tcpsetmss(new, lp->mss);
 	tcpsetscale(new, lp->ws);
@@ -1995,7 +1995,7 @@
 
 		/*
 		 *  if there's a matching call in limbo, tcpincoming will
-		 *  return it in state Syn_received
+		 *  return it in state Established
 		 */
 		s = tcpincoming(s, &seg, source, dest, version);
 		if(s == nil)
--