Lines Matching refs:Tcb

30   IN TCP_CB  *Tcb,  in TcpSeqAcceptable()  argument
34 return (TCP_SEQ_LEQ (Tcb->RcvWl2, Seg->End) && in TcpSeqAcceptable()
35 TCP_SEQ_LT (Seg->Seq, Tcb->RcvWl2 + Tcb->RcvWnd)); in TcpSeqAcceptable()
47 IN OUT TCP_CB *Tcb, in TcpFastRecover() argument
57 if (Tcb->CongestState != TCP_CONGEST_RECOVER) { in TcpFastRecover()
62 FlightSize = TCP_SUB_SEQ (Tcb->SndNxt, Tcb->SndUna); in TcpFastRecover()
64 Tcb->Ssthresh = MAX (FlightSize >> 1, (UINT32) (2 * Tcb->SndMss)); in TcpFastRecover()
65 Tcb->Recover = Tcb->SndNxt; in TcpFastRecover()
67 Tcb->CongestState = TCP_CONGEST_RECOVER; in TcpFastRecover()
68 TCP_CLEAR_FLG (Tcb->CtrlFlag, TCP_CTRL_RTT_ON); in TcpFastRecover()
73 TcpRetransmit (Tcb, Tcb->SndUna); in TcpFastRecover()
74 Tcb->CWnd = Tcb->Ssthresh + 3 * Tcb->SndMss; in TcpFastRecover()
79 Tcb, in TcpFastRecover()
80 Tcb->Recover) in TcpFastRecover()
88 if (Seg->Ack == Tcb->SndUna) { in TcpFastRecover()
98 Tcb->CWnd += Tcb->SndMss; in TcpFastRecover()
103 Tcb) in TcpFastRecover()
112 if (TCP_SEQ_GEQ (Seg->Ack, Tcb->Recover)) { in TcpFastRecover()
118 FlightSize = TCP_SUB_SEQ (Tcb->SndNxt, Tcb->SndUna); in TcpFastRecover()
120 Tcb->CWnd = MIN (Tcb->Ssthresh, FlightSize + Tcb->SndMss); in TcpFastRecover()
122 Tcb->CongestState = TCP_CONGEST_OPEN; in TcpFastRecover()
127 Tcb) in TcpFastRecover()
137 TcpRetransmit (Tcb, Seg->Ack); in TcpFastRecover()
138 Acked = TCP_SUB_SEQ (Seg->Ack, Tcb->SndUna); in TcpFastRecover()
145 if (Acked >= Tcb->SndMss) { in TcpFastRecover()
146 Acked -= Tcb->SndMss; in TcpFastRecover()
150 Tcb->CWnd -= Acked; in TcpFastRecover()
156 Tcb) in TcpFastRecover()
172 IN OUT TCP_CB *Tcb, in TcpFastLossRecover() argument
176 if (TCP_SEQ_GT (Seg->Ack, Tcb->SndUna)) { in TcpFastLossRecover()
182 if (TCP_SEQ_GEQ (Seg->Ack, Tcb->LossRecover)) { in TcpFastLossRecover()
187 Tcb->LossTimes = 0; in TcpFastLossRecover()
188 Tcb->CongestState = TCP_CONGEST_OPEN; in TcpFastLossRecover()
194 Tcb) in TcpFastLossRecover()
203 TcpRetransmit (Tcb, Seg->Ack); in TcpFastLossRecover()
208 Tcb) in TcpFastLossRecover()
223 IN OUT TCP_CB *Tcb, in TcpComputeRtt() argument
232 if (Tcb->SRtt != 0) { in TcpComputeRtt()
234 Var = Tcb->SRtt - (Measure << TCP_RTT_SHIFT); in TcpComputeRtt()
240 Tcb->RttVar = (3 * Tcb->RttVar + Var) >> 2; in TcpComputeRtt()
241 Tcb->SRtt = 7 * (Tcb->SRtt >> 3) + Measure; in TcpComputeRtt()
247 Tcb->SRtt = Measure << TCP_RTT_SHIFT; in TcpComputeRtt()
248 Tcb->RttVar = Measure << (TCP_RTT_SHIFT - 1); in TcpComputeRtt()
251 Tcb->Rto = (Tcb->SRtt + MAX (8, 4 * Tcb->RttVar)) >> TCP_RTT_SHIFT; in TcpComputeRtt()
258 if (Tcb->Rto < TCP_RTO_MIN) { in TcpComputeRtt()
259 Tcb->Rto = TCP_RTO_MIN; in TcpComputeRtt()
261 } else if (Tcb->Rto > TCP_RTO_MAX) { in TcpComputeRtt()
262 Tcb->Rto = TCP_RTO_MAX; in TcpComputeRtt()
269 Tcb, in TcpComputeRtt()
270 Tcb->SRtt, in TcpComputeRtt()
271 Tcb->RttVar, in TcpComputeRtt()
272 Tcb->Rto) in TcpComputeRtt()
374 IN TCP_CB *Tcb, in TcpTrimInWnd() argument
378 TcpTrimSegment (Nbuf, Tcb->RcvNxt, Tcb->RcvWl2 + Tcb->RcvWnd); in TcpTrimInWnd()
394 IN OUT TCP_CB *Tcb in TcpDeliverData() argument
403 ASSERT ((Tcb != NULL) && (Tcb->Sk != NULL)); in TcpDeliverData()
409 if (IsListEmpty (&Tcb->RcvQue) || !TCP_CONNECTED (Tcb->State)) { in TcpDeliverData()
417 Entry = Tcb->RcvQue.ForwardLink; in TcpDeliverData()
418 Seq = Tcb->RcvNxt; in TcpDeliverData()
420 while (Entry != &Tcb->RcvQue) { in TcpDeliverData()
433 Tcb->RcvNxt = Seq; in TcpDeliverData()
446 if (!IsListEmpty (&Tcb->RcvQue)) { in TcpDeliverData()
450 Tcb) in TcpDeliverData()
460 Tcb) in TcpDeliverData()
463 switch (Tcb->State) { in TcpDeliverData()
467 TcpSetState (Tcb, TCP_CLOSE_WAIT); in TcpDeliverData()
472 if (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_FIN_ACKED)) { in TcpDeliverData()
474 TcpSetState (Tcb, TCP_CLOSING); in TcpDeliverData()
483 TcpSetState (Tcb, TCP_TIME_WAIT); in TcpDeliverData()
484 TcpClearAllTimer (Tcb); in TcpDeliverData()
486 if (Tcb->TimeWaitTimeout != 0) { in TcpDeliverData()
488 TcpSetTimer (Tcb, TCP_TIMER_2MSL, Tcb->TimeWaitTimeout); in TcpDeliverData()
494 Tcb) in TcpDeliverData()
497 TcpSendAck (Tcb); in TcpDeliverData()
498 TcpClose (Tcb); in TcpDeliverData()
517 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW); in TcpDeliverData()
527 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW); in TcpDeliverData()
533 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RCVD_URG) && in TcpDeliverData()
534 TCP_SEQ_LEQ (Seg->Seq, Tcb->RcvUp)) in TcpDeliverData()
537 if (TCP_SEQ_LEQ (Seg->End, Tcb->RcvUp)) { in TcpDeliverData()
540 Urgent = TCP_SUB_SEQ (Tcb->RcvUp, Seg->Seq) + 1; in TcpDeliverData()
544 SockDataRcvd (Tcb->Sk, Nbuf, Urgent); in TcpDeliverData()
547 if (TCP_FIN_RCVD (Tcb->State)) { in TcpDeliverData()
549 SockNoMoreData (Tcb->Sk); in TcpDeliverData()
567 IN OUT TCP_CB *Tcb, in TcpQueueData() argument
577 ASSERT ((Tcb != NULL) && (Nbuf != NULL) && (Nbuf->Tcp == NULL)); in TcpQueueData()
582 Head = &Tcb->RcvQue; in TcpQueueData()
629 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW); in TcpQueueData()
673 IN TCP_CB *Tcb, in TcpAdjustSndQue() argument
682 Head = &Tcb->SndQue; in TcpAdjustSndQue()
732 TCP_CB *Tcb; in TcpInput() local
747 Tcb = NULL; in TcpInput()
780 Tcb = TcpLocateTcb ( in TcpInput()
789 if ((Tcb == NULL) || (Tcb->State == TCP_CLOSED)) { in TcpInput()
792 Tcb = NULL; in TcpInput()
796 Seg = TcpFormatNetbuf (Tcb, Nbuf); in TcpInput()
806 Tcb) in TcpInput()
821 if (Tcb->State == TCP_LISTEN) { in TcpInput()
829 Tcb) in TcpInput()
843 Tcb) in TcpInput()
856 Parent = Tcb; in TcpInput()
858 Tcb = TcpCloneTcb (Parent); in TcpInput()
859 if (Tcb == NULL) { in TcpInput()
863 Tcb) in TcpInput()
872 Tcb) in TcpInput()
878 IP6_COPY_ADDRESS (&Tcb->LocalEnd.Ip, Dst); in TcpInput()
879 IP6_COPY_ADDRESS (&Tcb->RemoteEnd.Ip, Src); in TcpInput()
880 Tcb->LocalEnd.Port = Head->DstPort; in TcpInput()
881 Tcb->RemoteEnd.Port = Head->SrcPort; in TcpInput()
883 TcpInitTcbLocal (Tcb); in TcpInput()
884 TcpInitTcbPeer (Tcb, Seg, &Option); in TcpInput()
886 TcpSetState (Tcb, TCP_SYN_RCVD); in TcpInput()
887 TcpSetTimer (Tcb, TCP_TIMER_CONNECT, Tcb->ConnectTimeout); in TcpInput()
888 TcpTrimInWnd (Tcb, Nbuf); in TcpInput()
895 } else if (Tcb->State == TCP_SYN_SENT) { in TcpInput()
899 if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK) && (Seg->Ack != Tcb->Iss + 1)) { in TcpInput()
904 Tcb) in TcpInput()
920 Tcb) in TcpInput()
923 SOCK_ERROR (Tcb->Sk, EFI_CONNECTION_RESET); in TcpInput()
930 Tcb) in TcpInput()
946 TcpInitTcbPeer (Tcb, Seg, &Option); in TcpInput()
950 Tcb->SndUna = Seg->Ack; in TcpInput()
953 TcpClearTimer (Tcb, TCP_TIMER_REXMIT); in TcpInput()
955 if (TCP_SEQ_GT (Tcb->SndUna, Tcb->Iss)) { in TcpInput()
957 TcpSetState (Tcb, TCP_ESTABLISHED); in TcpInput()
959 TcpClearTimer (Tcb, TCP_TIMER_CONNECT); in TcpInput()
960 TcpDeliverData (Tcb); in TcpInput()
962 if ((Tcb->CongestState == TCP_CONGEST_OPEN) && in TcpInput()
963 TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RTT_ON)) in TcpInput()
966 TcpComputeRtt (Tcb, Tcb->RttMeasure); in TcpInput()
967 TCP_CLEAR_FLG (Tcb->CtrlFlag, TCP_CTRL_RTT_ON); in TcpInput()
970 TcpTrimInWnd (Tcb, Nbuf); in TcpInput()
972 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW); in TcpInput()
977 Tcb) in TcpInput()
985 TcpSetState (Tcb, TCP_SYN_RCVD); in TcpInput()
987 ASSERT (Tcb->SndNxt == Tcb->Iss + 1); in TcpInput()
988 TcpAdjustSndQue (Tcb, Tcb->SndNxt); in TcpInput()
990 TcpTrimInWnd (Tcb, Nbuf); in TcpInput()
995 Tcb) in TcpInput()
1012 if (Tcb->ProbeTimerOn && (Seg->Wnd != 0)) { in TcpInput()
1013 TcpClearTimer (Tcb, TCP_TIMER_PROBE); in TcpInput()
1014 Tcb->ProbeTimerOn = FALSE; in TcpInput()
1020 if (TcpSeqAcceptable (Tcb, Seg) == 0) { in TcpInput()
1024 Tcb) in TcpInput()
1028 TcpSendAck (Tcb); in TcpInput()
1034 if ((TCP_SEQ_LT (Seg->Seq, Tcb->RcvWl2)) && in TcpInput()
1035 (Tcb->RcvWl2 == Seg->End) && in TcpInput()
1039 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW); in TcpInput()
1047 DEBUG ((EFI_D_WARN, "TcpInput: connection reset for TCB %p\n", Tcb)); in TcpInput()
1049 if (Tcb->State == TCP_SYN_RCVD) { in TcpInput()
1051 SOCK_ERROR (Tcb->Sk, EFI_CONNECTION_REFUSED); in TcpInput()
1059 } else if ((Tcb->State == TCP_ESTABLISHED) || in TcpInput()
1060 (Tcb->State == TCP_FIN_WAIT_1) || in TcpInput()
1061 (Tcb->State == TCP_FIN_WAIT_2) || in TcpInput()
1062 (Tcb->State == TCP_CLOSE_WAIT)) in TcpInput()
1065 SOCK_ERROR (Tcb->Sk, EFI_CONNECTION_RESET); in TcpInput()
1076 TcpTrimInWnd (Tcb, Nbuf); in TcpInput()
1090 Tcb) in TcpInput()
1093 SOCK_ERROR (Tcb->Sk, EFI_CONNECTION_RESET); in TcpInput()
1103 Tcb) in TcpInput()
1108 if (Tcb->IpInfo->IpVersion == IP_VERSION_6 && Tcb->Tick == 0) { in TcpInput()
1109 Tcp6RefreshNeighbor (Tcb, Src, TCP6_KEEP_NEIGHBOR_TIME * TICKS_PER_SECOND); in TcpInput()
1110 Tcb->Tick = TCP6_REFRESH_NEIGHBOR_TICK; in TcpInput()
1114 if (Tcb->State == TCP_SYN_RCVD) { in TcpInput()
1116 if (TCP_SEQ_LT (Tcb->SndUna, Seg->Ack) && in TcpInput()
1117 TCP_SEQ_LEQ (Seg->Ack, Tcb->SndNxt)) in TcpInput()
1120 Tcb->SndWnd = Seg->Wnd; in TcpInput()
1121 Tcb->SndWndMax = MAX (Tcb->SndWnd, Tcb->SndWndMax); in TcpInput()
1122 Tcb->SndWl1 = Seg->Seq; in TcpInput()
1123 Tcb->SndWl2 = Seg->Ack; in TcpInput()
1124 TcpSetState (Tcb, TCP_ESTABLISHED); in TcpInput()
1126 TcpClearTimer (Tcb, TCP_TIMER_CONNECT); in TcpInput()
1127 TcpDeliverData (Tcb); in TcpInput()
1132 Tcb) in TcpInput()
1142 Tcb) in TcpInput()
1149 if (TCP_SEQ_LT (Seg->Ack, Tcb->SndUna)) { in TcpInput()
1154 Tcb) in TcpInput()
1159 } else if (TCP_SEQ_GT (Seg->Ack, Tcb->SndNxt)) { in TcpInput()
1164 Tcb) in TcpInput()
1167 TcpSendAck (Tcb); in TcpInput()
1180 if (TCP_SEQ_LEQ (Seg->Seq, Tcb->RcvWl2) && in TcpInput()
1181 TCP_SEQ_LT (Tcb->RcvWl2, Seg->End)) in TcpInput()
1184 Tcb->TsRecent = Option.TSVal; in TcpInput()
1185 Tcb->TsRecentAge = mTcpTick; in TcpInput()
1188 TcpComputeRtt (Tcb, TCP_SUB_TIME (mTcpTick, Option.TSEcr)); in TcpInput()
1190 } else if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RTT_ON)) { in TcpInput()
1192 ASSERT (Tcb->CongestState == TCP_CONGEST_OPEN); in TcpInput()
1194 TcpComputeRtt (Tcb, Tcb->RttMeasure); in TcpInput()
1195 TCP_CLEAR_FLG (Tcb->CtrlFlag, TCP_CTRL_RTT_ON); in TcpInput()
1198 if (Seg->Ack == Tcb->SndNxt) { in TcpInput()
1200 TcpClearTimer (Tcb, TCP_TIMER_REXMIT); in TcpInput()
1203 TcpSetTimer (Tcb, TCP_TIMER_REXMIT, Tcb->Rto); in TcpInput()
1209 if ((Seg->Ack == Tcb->SndUna) && in TcpInput()
1210 (Tcb->SndUna != Tcb->SndNxt) && in TcpInput()
1211 (Seg->Wnd == Tcb->SndWnd) && in TcpInput()
1215 Tcb->DupAck++; in TcpInput()
1218 Tcb->DupAck = 0; in TcpInput()
1224 if (((Tcb->CongestState == TCP_CONGEST_OPEN) && (Tcb->DupAck < 3)) || in TcpInput()
1225 (Tcb->CongestState == TCP_CONGEST_LOSS)) in TcpInput()
1228 if (TCP_SEQ_GT (Seg->Ack, Tcb->SndUna)) { in TcpInput()
1230 if (Tcb->CWnd < Tcb->Ssthresh) { in TcpInput()
1232 Tcb->CWnd += Tcb->SndMss; in TcpInput()
1235 Tcb->CWnd += MAX (Tcb->SndMss * Tcb->SndMss / Tcb->CWnd, 1); in TcpInput()
1238 Tcb->CWnd = MIN (Tcb->CWnd, TCP_MAX_WIN << Tcb->SndWndScale); in TcpInput()
1241 if (Tcb->CongestState == TCP_CONGEST_LOSS) { in TcpInput()
1242 TcpFastLossRecover (Tcb, Seg); in TcpInput()
1246 TcpFastRecover (Tcb, Seg); in TcpInput()
1249 if (TCP_SEQ_GT (Seg->Ack, Tcb->SndUna)) { in TcpInput()
1251 TcpAdjustSndQue (Tcb, Seg->Ack); in TcpInput()
1252 Tcb->SndUna = Seg->Ack; in TcpInput()
1254 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_SND_URG) && in TcpInput()
1255 TCP_SEQ_LT (Tcb->SndUp, Seg->Ack)) in TcpInput()
1258 TCP_CLEAR_FLG (Tcb->CtrlFlag, TCP_CTRL_SND_URG); in TcpInput()
1265 if (TCP_SEQ_LT (Tcb->SndWl1, Seg->Seq) || in TcpInput()
1266 ((Tcb->SndWl1 == Seg->Seq) && TCP_SEQ_LEQ (Tcb->SndWl2, Seg->Ack))) in TcpInput()
1271 if (TCP_SEQ_LT (Right, Tcb->SndWl2 + Tcb->SndWnd)) { in TcpInput()
1273 if ((Tcb->SndWl1 == Seg->Seq) && in TcpInput()
1274 (Tcb->SndWl2 == Seg->Ack) && in TcpInput()
1284 Tcb) in TcpInput()
1287 if ((Tcb->CongestState == TCP_CONGEST_RECOVER) && in TcpInput()
1288 (TCP_SEQ_LT (Right, Tcb->Recover))) in TcpInput()
1291 Tcb->Recover = Right; in TcpInput()
1294 if ((Tcb->CongestState == TCP_CONGEST_LOSS) && in TcpInput()
1295 (TCP_SEQ_LT (Right, Tcb->LossRecover))) in TcpInput()
1298 Tcb->LossRecover = Right; in TcpInput()
1301 if (TCP_SEQ_LT (Right, Tcb->SndNxt)) { in TcpInput()
1303 Tcb->SndNxt = Right; in TcpInput()
1305 if (Right == Tcb->SndUna) { in TcpInput()
1307 TcpClearTimer (Tcb, TCP_TIMER_REXMIT); in TcpInput()
1308 TcpSetProbeTimer (Tcb); in TcpInput()
1313 Tcb->SndWnd = Seg->Wnd; in TcpInput()
1314 Tcb->SndWndMax = MAX (Tcb->SndWnd, Tcb->SndWndMax); in TcpInput()
1315 Tcb->SndWl1 = Seg->Seq; in TcpInput()
1316 Tcb->SndWl2 = Seg->Ack; in TcpInput()
1321 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_FIN_SENT) && in TcpInput()
1322 (Tcb->SndUna == Tcb->SndNxt)) in TcpInput()
1328 Tcb) in TcpInput()
1331 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_FIN_ACKED); in TcpInput()
1337 switch (Tcb->State) { in TcpInput()
1340 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_FIN_ACKED)) { in TcpInput()
1342 TcpSetState (Tcb, TCP_FIN_WAIT_2); in TcpInput()
1344 TcpClearAllTimer (Tcb); in TcpInput()
1345 TcpSetTimer (Tcb, TCP_TIMER_FINWAIT2, Tcb->FinWait2Timeout); in TcpInput()
1357 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_FIN_ACKED)) { in TcpInput()
1359 TcpSetState (Tcb, TCP_TIME_WAIT); in TcpInput()
1361 TcpClearAllTimer (Tcb); in TcpInput()
1363 if (Tcb->TimeWaitTimeout != 0) { in TcpInput()
1365 TcpSetTimer (Tcb, TCP_TIMER_2MSL, Tcb->TimeWaitTimeout); in TcpInput()
1371 Tcb) in TcpInput()
1374 TcpClose (Tcb); in TcpInput()
1381 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_FIN_ACKED)) { in TcpInput()
1383 TcpSetState (Tcb, TCP_CLOSED); in TcpInput()
1390 TcpSendAck (Tcb); in TcpInput()
1392 if (Tcb->TimeWaitTimeout != 0) { in TcpInput()
1394 TcpSetTimer (Tcb, TCP_TIMER_2MSL, Tcb->TimeWaitTimeout); in TcpInput()
1400 Tcb) in TcpInput()
1403 TcpClose (Tcb); in TcpInput()
1416 Tcb->Idle = 0; in TcpInput()
1417 TcpSetKeepaliveTimer (Tcb); in TcpInput()
1419 if (TCP_FLG_ON (Seg->Flag, TCP_FLG_URG) && !TCP_FIN_RCVD (Tcb->State)) { in TcpInput()
1424 Tcb) in TcpInput()
1429 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RCVD_URG) && in TcpInput()
1430 TCP_SEQ_GT (Urg, Tcb->RcvUp)) in TcpInput()
1433 Tcb->RcvUp = Urg; in TcpInput()
1436 Tcb->RcvUp = Urg; in TcpInput()
1437 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_RCVD_URG); in TcpInput()
1445 if (TCP_FIN_RCVD (Tcb->State)) { in TcpInput()
1450 Tcb) in TcpInput()
1456 if (TCP_LOCAL_CLOSED (Tcb->State) && (Nbuf->TotalSize != 0)) { in TcpInput()
1460 Tcb) in TcpInput()
1466 TcpQueueData (Tcb, Nbuf); in TcpInput()
1467 if (TcpDeliverData (Tcb) == -1) { in TcpInput()
1471 if (!IsListEmpty (&Tcb->RcvQue)) { in TcpInput()
1472 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW); in TcpInput()
1488 Tcb->Parent = Parent; in TcpInput()
1489 TcpInsertTcb (Tcb); in TcpInput()
1492 if ((Tcb->State != TCP_CLOSED) && in TcpInput()
1493 (TcpToSendData (Tcb, 0) == 0) && in TcpInput()
1494 (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW) || (Nbuf->TotalSize != 0))) in TcpInput()
1497 TcpToSendAck (Tcb); in TcpInput()
1504 TcpSendReset (Tcb, Head, Len, Dst, Src, Version); in TcpInput()
1507 ASSERT ((Tcb != NULL) && (Tcb->Sk != NULL)); in TcpInput()
1510 TcpClose (Tcb); in TcpInput()
1516 TcpSendReset (Tcb, Head, Len, Dst, Src, Version); in TcpInput()
1526 if ((Parent != NULL) && (Tcb != NULL)) { in TcpInput()
1528 ASSERT (Tcb->Sk != NULL); in TcpInput()
1529 TcpClose (Tcb); in TcpInput()
1557 TCP_CB *Tcb; in TcpIcmpInput() local
1566 Tcb = TcpLocateTcb ( in TcpIcmpInput()
1574 if (Tcb == NULL || Tcb->State == TCP_CLOSED) { in TcpIcmpInput()
1583 if (!(TCP_SEQ_LEQ (Tcb->SndUna, Seq) && TCP_SEQ_LT (Seq, Tcb->SndNxt))) { in TcpIcmpInput()
1590 Tcb->Sk->IpVersion, in TcpIcmpInput()
1597 SOCK_ERROR (Tcb->Sk, IcmpErrStatus); in TcpIcmpInput()
1602 TcpClose (Tcb); in TcpIcmpInput()