/* Trim off the data outside the tcb's receive window. */
INTN TcpTrimInWnd(IN TCP_CB *Tcb, IN NET_BUF *Nbuf)
/* Trim off the data outside the tcb's receive window. */
INTN TcpTrimInWnd(IN TCP_CB *Tcb, IN NET_BUF *Nbuf)
{
  return TcpTrimSegment (Nbuf, Tcb->RcvNxt, Tcb->RcvWl2 + Tcb->RcvWnd);
}