From ae82590cf6402be3c3976edc7a1cba852207a8c9 Mon Sep 17 00:00:00 2001 From: ps Date: Sun, 10 Apr 2005 05:20:10 +0000 Subject: [PATCH] When the rightmost SACK block expands, rcv_lastsack should be updated. (Fix for kern/78226). Submitted by : Noritoshi Demizu Reviewed by : Mohan Srinivasan (mohans at yahoo-inc dot com), Raja Mukerji (raja at moselle dot com). --- sys/netinet/tcp_sack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet/tcp_sack.c b/sys/netinet/tcp_sack.c index c288da84b2e..efe3bb6c469 100644 --- a/sys/netinet/tcp_sack.c +++ b/sys/netinet/tcp_sack.c @@ -463,6 +463,8 @@ tcp_sack_option(struct tcpcb *tp, struct tcphdr *th, u_char *cp, int optlen) tp->snd_numholes++; tcp_sack_globalholes++; } + if (SEQ_LT(tp->rcv_lastsack, sack.end)) + tp->rcv_lastsack = sack.end; } return (0); } -- 2.45.2