git: 202f6285ce27 - releng/15.2 - tcp: make ghost ACK handling more conformant

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Fri, 27 Nov 2026 00:00:26 UTC
The branch releng/15.2 has been updated by cperciva:

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

commit 202f6285ce27e063530e915680395d0bea0438bd
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2026-07-23 16:03:39 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-11-26 23:59:52 +0000

    tcp: make ghost ACK handling more conformant
    
    The latest version of draft-ietf-tcpm-tcp-ghost-acks changed
    a condition. This should make no substantial difference, but makei
    it compliant to the latest version of the specification.
    
    Approved by:    re (cperciva)
    Reviewed by:            rscheff, Peter Lei
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D58411
    
    (cherry picked from commit fa2ad70a4511e7b379e81de82c9e51b2e0994295)
    (cherry picked from commit a170546cb8d13a67ee3062114228d3df4744bbee)
---
 sys/netinet/tcp_input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 03c9117891e8..0085a3cd1939 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -2439,7 +2439,7 @@ tcp_do_segment(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
 	/*
 	 * Ack processing.
 	 */
-	if (SEQ_GEQ(tp->snd_una, tp->iss + (TCP_MAXWIN << tp->snd_scale))) {
+	if (SEQ_GT(tp->snd_una, tp->iss + (TCP_MAXWIN << tp->snd_scale))) {
 		/* Checking SEG.ACK against ISS is definitely redundant. */
 		tp->t_flags2 |= TF2_NO_ISS_CHECK;
 	}