/* Enable the window prober timer and set the timeout value. */
VOID TcpSetProbeTimer(IN OUT TCP_CB *Tcb)
/* Enable the window prober timer and set the timeout value. */
VOID TcpSetProbeTimer(IN OUT TCP_CB *Tcb)
{
  if (!Tcb->ProbeTimerOn) {
    Tcb->ProbeTime    = Tcb->Rto;
    Tcb->ProbeTimerOn = TRUE;
  } else {
    Tcb->ProbeTime <<= 1;
  }
  if (Tcb->ProbeTime < TCP_RTO_MIN) {
    Tcb->ProbeTime = TCP_RTO_MIN;
  } else if (Tcb->ProbeTime > TCP_RTO_MAX) {
    Tcb->ProbeTime = TCP_RTO_MAX;
  }
  TcpSetTimer (Tcb, TCP_TIMER_PROBE, Tcb->ProbeTime);
}