/** @file\r
TCP input process routines.\r
\r
-Copyright (c) 2005 - 2009, Intel Corporation<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2005 - 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php<BR>\r
)\r
{\r
return (TCP_SEQ_LEQ (Tcb->RcvWl2, Seg->End) &&\r
- TCP_SEQ_LEQ (Seg->Seq, Tcb->RcvWl2 + Tcb->RcvWnd));\r
+ TCP_SEQ_LT (Seg->Seq, Tcb->RcvWl2 + Tcb->RcvWnd));\r
}\r
\r
\r
Tcb = TcpCloneTcb (Parent);\r
if (Tcb == NULL) {\r
DEBUG ((EFI_D_ERROR, "TcpInput: discard a segment because"\r
- "failed to clone a child for TCB%x\n", Tcb));\r
+ " failed to clone a child for TCB%x\n", Tcb));\r
\r
goto DISCARD;\r
}\r
// Process segment in SYN_RCVD or TCP_CONNECTED states\r
//\r
\r
+ //\r
+ // Clear probe timer since the RecvWindow is opened.\r
+ //\r
+ if (Tcb->ProbeTimerOn && (Seg->Wnd != 0)) {\r
+ TcpClearTimer (Tcb, TCP_TIMER_PROBE);\r
+ Tcb->ProbeTimerOn = FALSE;\r
+ }\r
+\r
//\r
// First step: Check whether SEG.SEQ is acceptable\r
//\r
Tcb->Idle = 0;\r
TcpSetKeepaliveTimer (Tcb);\r
\r
- if (TCP_TIMER_ON (Tcb->EnabledTimer, TCP_TIMER_PROBE)) {\r
-\r
- TcpClearTimer (Tcb, TCP_TIMER_PROBE);\r
- }\r
-\r
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_URG) &&\r
!TCP_FIN_RCVD (Tcb->State)) {\r
\r