/* Check whether the sequence number of the incoming segment is acceptable. */
INTN TcpSeqAcceptable(IN TCP_CB *Tcb, IN TCP_SEG *Seg)
/* Check whether the sequence number of the incoming segment is acceptable. */
INTN TcpSeqAcceptable(IN TCP_CB *Tcb, IN TCP_SEG *Seg)
{
  return (TCP_SEQ_LEQ (Tcb->RcvNxt, Seg->End) &&
          TCP_SEQ_LT (Seg->Seq, Tcb->RcvWl2 + Tcb->RcvWnd));
}