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:
parent
7fb64531d3
commit
5891ebd6cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221891
@ -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. */
|
||||
|
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user