When the rightmost SACK block expands, rcv_lastsack should be updated.

(Fix for kern/78226).

Submitted by : Noritoshi Demizu <demizu at dd dot iij4u dot or dot jp>
Reviewed by  : Mohan Srinivasan (mohans at yahoo-inc dot com),
               Raja Mukerji (raja at moselle dot com).
This commit is contained in:
ps 2005-04-10 05:20:10 +00:00
parent cb57694d7f
commit ae82590cf6

View File

@ -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);
}