1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

Oops, fix order of sequence numbers in KASSERT()'s to catch negative

receive windows to match the labels in the panic message.

Submitted by:	trociny
This commit is contained in:
John Baldwin 2011-05-14 14:41:40 +00:00
parent 7fb64531d3
commit 5891ebd6cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221891
2 changed files with 2 additions and 2 deletions

View File

@ -1833,7 +1833,7 @@ tcp_do_segment(struct mbuf *m, struct tcphdr *th, struct socket *so,
win = 0;
KASSERT(SEQ_GEQ(tp->rcv_adv, tp->rcv_nxt),
("tcp_input negative window: tp %p rcv_nxt %u rcv_adv %u", tp,
tp->rcv_adv, tp->rcv_nxt));
tp->rcv_nxt, tp->rcv_adv));
tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt));
/* Reset receive buffer auto scaling when not in bulk receive mode. */

View File

@ -244,7 +244,7 @@ tcp_twstart(struct tcpcb *tp)
*/
KASSERT(SEQ_GEQ(tp->rcv_adv, tp->rcv_nxt),
("tcp_twstart negative window: tp %p rcv_nxt %u rcv_adv %u", tp,
tp->rcv_adv, tp->rcv_nxt));
tp->rcv_nxt, tp->rcv_adv));
tw->last_win = (tp->rcv_adv - tp->rcv_nxt) >> tp->rcv_scale;
/*