tcp_should_send_recvwindow: Add a few ninfo()
This commit is contained in:
parent
14ec75e7fc
commit
0347cd3f09
@ -236,6 +236,10 @@ bool tcp_should_send_recvwindow(FAR struct tcp_conn_s *conn)
|
||||
|
||||
if (win <= oldwin)
|
||||
{
|
||||
ninfo("tcp_should_send_recvwindow: false: "
|
||||
"rcvseq=%" PRIu32 ", rcv_adv=%" PRIu32 ", "
|
||||
"old win=%" PRIu16 ", new win=%" PRIu16 "\n",
|
||||
rcvseq, conn->rcv_adv, oldwin, win);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -252,6 +256,9 @@ bool tcp_should_send_recvwindow(FAR struct tcp_conn_s *conn)
|
||||
maxwin = tcp_maxrcvwin(conn);
|
||||
if (2 * adv >= maxwin)
|
||||
{
|
||||
ninfo("tcp_should_send_recvwindow: true: "
|
||||
"adv=%" PRIu16 ", maxwin=%" PRIu16 "\n",
|
||||
adv, maxwin);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -262,8 +269,14 @@ bool tcp_should_send_recvwindow(FAR struct tcp_conn_s *conn)
|
||||
mss = tcp_rx_mss(dev);
|
||||
if (adv >= 2 * mss)
|
||||
{
|
||||
ninfo("tcp_should_send_recvwindow: true: "
|
||||
"adv=%" PRIu16 ", mss=%" PRIu16 ", maxwin=%" PRIu16 "\n",
|
||||
adv, mss, maxwin);
|
||||
return true;
|
||||
}
|
||||
|
||||
ninfo("tcp_should_send_recvwindow: false: "
|
||||
"adv=%" PRIu16 ", mss=%" PRIu16 ", maxwin=%" PRIu16 "\n",
|
||||
adv, mss, maxwin);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user