Lines Matching refs:Tcb
30 IN TCP_CB *Tcb, in TcpSeqAcceptable() argument
34 return (TCP_SEQ_LEQ (Tcb->RcvNxt, 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()
787 Tcb = TcpLocateTcb ( in TcpInput()
796 if ((Tcb == NULL) || (Tcb->State == TCP_CLOSED)) { in TcpInput()
799 Tcb = NULL; in TcpInput()
803 Seg = TcpFormatNetbuf (Tcb, Nbuf); in TcpInput()
813 Tcb) in TcpInput()
828 if (Tcb->State == TCP_LISTEN) { in TcpInput()
836 Tcb) in TcpInput()
850 Tcb) in TcpInput()
863 Parent = Tcb; in TcpInput()
865 Tcb = TcpCloneTcb (Parent); in TcpInput()
866 if (Tcb == NULL) { in TcpInput()
870 Tcb) in TcpInput()
879 Tcb) in TcpInput()
885 IP6_COPY_ADDRESS (&Tcb->LocalEnd.Ip, Dst); in TcpInput()
886 IP6_COPY_ADDRESS (&Tcb->RemoteEnd.Ip, Src); in TcpInput()
887 Tcb->LocalEnd.Port = Head->DstPort; in TcpInput()
888 Tcb->RemoteEnd.Port = Head->SrcPort; in TcpInput()
890 TcpInitTcbLocal (Tcb); in TcpInput()
891 TcpInitTcbPeer (Tcb, Seg, &Option); in TcpInput()
893 TcpSetState (Tcb, TCP_SYN_RCVD); in TcpInput()
894 TcpSetTimer (Tcb, TCP_TIMER_CONNECT, Tcb->ConnectTimeout); in TcpInput()
895 TcpTrimInWnd (Tcb, Nbuf); in TcpInput()
902 } else if (Tcb->State == TCP_SYN_SENT) { in TcpInput()
906 if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK) && (Seg->Ack != Tcb->Iss + 1)) { in TcpInput()
911 Tcb) in TcpInput()
927 Tcb) in TcpInput()
930 SOCK_ERROR (Tcb->Sk, EFI_CONNECTION_RESET); in TcpInput()
937 Tcb) in TcpInput()
953 TcpInitTcbPeer (Tcb, Seg, &Option); in TcpInput()
957 Tcb->SndUna = Seg->Ack; in TcpInput()
960 TcpClearTimer (Tcb, TCP_TIMER_REXMIT); in TcpInput()
962 if (TCP_SEQ_GT (Tcb->SndUna, Tcb->Iss)) { in TcpInput()
964 TcpSetState (Tcb, TCP_ESTABLISHED); in TcpInput()
966 TcpClearTimer (Tcb, TCP_TIMER_CONNECT); in TcpInput()
967 TcpDeliverData (Tcb); in TcpInput()
969 if ((Tcb->CongestState == TCP_CONGEST_OPEN) && in TcpInput()
970 TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RTT_ON)) in TcpInput()
973 TcpComputeRtt (Tcb, Tcb->RttMeasure); in TcpInput()
974 TCP_CLEAR_FLG (Tcb->CtrlFlag, TCP_CTRL_RTT_ON); in TcpInput()
977 TcpTrimInWnd (Tcb, Nbuf); in TcpInput()
979 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW); in TcpInput()
984 Tcb) in TcpInput()
992 TcpSetState (Tcb, TCP_SYN_RCVD); in TcpInput()
994 ASSERT (Tcb->SndNxt == Tcb->Iss + 1); in TcpInput()
995 TcpAdjustSndQue (Tcb, Tcb->SndNxt); in TcpInput()
997 TcpTrimInWnd (Tcb, Nbuf); in TcpInput()
1002 Tcb) in TcpInput()
1019 if (Tcb->ProbeTimerOn && (Seg->Wnd != 0)) { in TcpInput()
1020 TcpClearTimer (Tcb, TCP_TIMER_PROBE); in TcpInput()
1021 Tcb->ProbeTimerOn = FALSE; in TcpInput()
1027 if (TcpSeqAcceptable (Tcb, Seg) == 0) { in TcpInput()
1031 Tcb) in TcpInput()
1035 TcpSendAck (Tcb); in TcpInput()
1041 if ((TCP_SEQ_LT (Seg->Seq, Tcb->RcvWl2)) && in TcpInput()
1042 (Tcb->RcvWl2 == Seg->End) && in TcpInput()
1046 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW); in TcpInput()
1054 DEBUG ((EFI_D_WARN, "TcpInput: connection reset for TCB %p\n", Tcb)); in TcpInput()
1056 if (Tcb->State == TCP_SYN_RCVD) { in TcpInput()
1058 SOCK_ERROR (Tcb->Sk, EFI_CONNECTION_REFUSED); in TcpInput()
1066 } else if ((Tcb->State == TCP_ESTABLISHED) || in TcpInput()
1067 (Tcb->State == TCP_FIN_WAIT_1) || in TcpInput()
1068 (Tcb->State == TCP_FIN_WAIT_2) || in TcpInput()
1069 (Tcb->State == TCP_CLOSE_WAIT)) in TcpInput()
1072 SOCK_ERROR (Tcb->Sk, EFI_CONNECTION_RESET); in TcpInput()
1083 TcpTrimInWnd (Tcb, Nbuf); in TcpInput()
1097 Tcb) in TcpInput()
1100 SOCK_ERROR (Tcb->Sk, EFI_CONNECTION_RESET); in TcpInput()
1110 Tcb) in TcpInput()
1115 if (Tcb->IpInfo->IpVersion == IP_VERSION_6 && Tcb->Tick == 0) { in TcpInput()
1116 Tcp6RefreshNeighbor (Tcb, Src, TCP6_KEEP_NEIGHBOR_TIME * TICKS_PER_SECOND); in TcpInput()
1117 Tcb->Tick = TCP6_REFRESH_NEIGHBOR_TICK; in TcpInput()
1121 if (Tcb->State == TCP_SYN_RCVD) { in TcpInput()
1123 if (TCP_SEQ_LT (Tcb->SndUna, Seg->Ack) && in TcpInput()
1124 TCP_SEQ_LEQ (Seg->Ack, Tcb->SndNxt)) in TcpInput()
1127 Tcb->SndWnd = Seg->Wnd; in TcpInput()
1128 Tcb->SndWndMax = MAX (Tcb->SndWnd, Tcb->SndWndMax); in TcpInput()
1129 Tcb->SndWl1 = Seg->Seq; in TcpInput()
1130 Tcb->SndWl2 = Seg->Ack; in TcpInput()
1131 TcpSetState (Tcb, TCP_ESTABLISHED); in TcpInput()
1133 TcpClearTimer (Tcb, TCP_TIMER_CONNECT); in TcpInput()
1134 TcpDeliverData (Tcb); in TcpInput()
1139 Tcb) in TcpInput()
1149 Tcb) in TcpInput()
1156 if (TCP_SEQ_LT (Seg->Ack, Tcb->SndUna)) { in TcpInput()
1161 Tcb) in TcpInput()
1166 } else if (TCP_SEQ_GT (Seg->Ack, Tcb->SndNxt)) { in TcpInput()
1171 Tcb) in TcpInput()
1174 TcpSendAck (Tcb); in TcpInput()
1187 if (TCP_SEQ_LEQ (Seg->Seq, Tcb->RcvWl2) && in TcpInput()
1188 TCP_SEQ_LT (Tcb->RcvWl2, Seg->End)) in TcpInput()
1191 Tcb->TsRecent = Option.TSVal; in TcpInput()
1192 Tcb->TsRecentAge = mTcpTick; in TcpInput()
1195 TcpComputeRtt (Tcb, TCP_SUB_TIME (mTcpTick, Option.TSEcr)); in TcpInput()
1197 } else if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RTT_ON)) { in TcpInput()
1199 ASSERT (Tcb->CongestState == TCP_CONGEST_OPEN); in TcpInput()
1201 TcpComputeRtt (Tcb, Tcb->RttMeasure); in TcpInput()
1202 TCP_CLEAR_FLG (Tcb->CtrlFlag, TCP_CTRL_RTT_ON); in TcpInput()
1205 if (Seg->Ack == Tcb->SndNxt) { in TcpInput()
1207 TcpClearTimer (Tcb, TCP_TIMER_REXMIT); in TcpInput()
1210 TcpSetTimer (Tcb, TCP_TIMER_REXMIT, Tcb->Rto); in TcpInput()
1216 if ((Seg->Ack == Tcb->SndUna) && in TcpInput()
1217 (Tcb->SndUna != Tcb->SndNxt) && in TcpInput()
1218 (Seg->Wnd == Tcb->SndWnd) && in TcpInput()
1222 Tcb->DupAck++; in TcpInput()
1225 Tcb->DupAck = 0; in TcpInput()
1231 if (((Tcb->CongestState == TCP_CONGEST_OPEN) && (Tcb->DupAck < 3)) || in TcpInput()
1232 (Tcb->CongestState == TCP_CONGEST_LOSS)) in TcpInput()
1235 if (TCP_SEQ_GT (Seg->Ack, Tcb->SndUna)) { in TcpInput()
1237 if (Tcb->CWnd < Tcb->Ssthresh) { in TcpInput()
1239 Tcb->CWnd += Tcb->SndMss; in TcpInput()
1242 Tcb->CWnd += MAX (Tcb->SndMss * Tcb->SndMss / Tcb->CWnd, 1); in TcpInput()
1245 Tcb->CWnd = MIN (Tcb->CWnd, TCP_MAX_WIN << Tcb->SndWndScale); in TcpInput()
1248 if (Tcb->CongestState == TCP_CONGEST_LOSS) { in TcpInput()
1249 TcpFastLossRecover (Tcb, Seg); in TcpInput()
1253 TcpFastRecover (Tcb, Seg); in TcpInput()
1256 if (TCP_SEQ_GT (Seg->Ack, Tcb->SndUna)) { in TcpInput()
1258 TcpAdjustSndQue (Tcb, Seg->Ack); in TcpInput()
1259 Tcb->SndUna = Seg->Ack; in TcpInput()
1261 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_SND_URG) && in TcpInput()
1262 TCP_SEQ_LT (Tcb->SndUp, Seg->Ack)) in TcpInput()
1265 TCP_CLEAR_FLG (Tcb->CtrlFlag, TCP_CTRL_SND_URG); in TcpInput()
1272 if (TCP_SEQ_LT (Tcb->SndWl1, Seg->Seq) || in TcpInput()
1273 ((Tcb->SndWl1 == Seg->Seq) && TCP_SEQ_LEQ (Tcb->SndWl2, Seg->Ack))) in TcpInput()
1278 if (TCP_SEQ_LT (Right, Tcb->SndWl2 + Tcb->SndWnd)) { in TcpInput()
1280 if ((Tcb->SndWl1 == Seg->Seq) && in TcpInput()
1281 (Tcb->SndWl2 == Seg->Ack) && in TcpInput()
1291 Tcb) in TcpInput()
1294 if ((Tcb->CongestState == TCP_CONGEST_RECOVER) && in TcpInput()
1295 (TCP_SEQ_LT (Right, Tcb->Recover))) in TcpInput()
1298 Tcb->Recover = Right; in TcpInput()
1301 if ((Tcb->CongestState == TCP_CONGEST_LOSS) && in TcpInput()
1302 (TCP_SEQ_LT (Right, Tcb->LossRecover))) in TcpInput()
1305 Tcb->LossRecover = Right; in TcpInput()
1308 if (TCP_SEQ_LT (Right, Tcb->SndNxt)) { in TcpInput()
1310 Tcb->SndNxt = Right; in TcpInput()
1312 if (Right == Tcb->SndUna) { in TcpInput()
1314 TcpClearTimer (Tcb, TCP_TIMER_REXMIT); in TcpInput()
1315 TcpSetProbeTimer (Tcb); in TcpInput()
1320 Tcb->SndWnd = Seg->Wnd; in TcpInput()
1321 Tcb->SndWndMax = MAX (Tcb->SndWnd, Tcb->SndWndMax); in TcpInput()
1322 Tcb->SndWl1 = Seg->Seq; in TcpInput()
1323 Tcb->SndWl2 = Seg->Ack; in TcpInput()
1328 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_FIN_SENT) && in TcpInput()
1329 (Tcb->SndUna == Tcb->SndNxt)) in TcpInput()
1335 Tcb) in TcpInput()
1338 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_FIN_ACKED); in TcpInput()
1344 switch (Tcb->State) { in TcpInput()
1347 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_FIN_ACKED)) { in TcpInput()
1349 TcpSetState (Tcb, TCP_FIN_WAIT_2); in TcpInput()
1351 TcpClearAllTimer (Tcb); in TcpInput()
1352 TcpSetTimer (Tcb, TCP_TIMER_FINWAIT2, Tcb->FinWait2Timeout); in TcpInput()
1364 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_FIN_ACKED)) { in TcpInput()
1366 TcpSetState (Tcb, TCP_TIME_WAIT); in TcpInput()
1368 TcpClearAllTimer (Tcb); in TcpInput()
1370 if (Tcb->TimeWaitTimeout != 0) { in TcpInput()
1372 TcpSetTimer (Tcb, TCP_TIMER_2MSL, Tcb->TimeWaitTimeout); in TcpInput()
1378 Tcb) in TcpInput()
1381 TcpClose (Tcb); in TcpInput()
1388 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_FIN_ACKED)) { in TcpInput()
1390 TcpSetState (Tcb, TCP_CLOSED); in TcpInput()
1397 TcpSendAck (Tcb); in TcpInput()
1399 if (Tcb->TimeWaitTimeout != 0) { in TcpInput()
1401 TcpSetTimer (Tcb, TCP_TIMER_2MSL, Tcb->TimeWaitTimeout); in TcpInput()
1407 Tcb) in TcpInput()
1410 TcpClose (Tcb); in TcpInput()
1423 Tcb->Idle = 0; in TcpInput()
1424 TcpSetKeepaliveTimer (Tcb); in TcpInput()
1426 if (TCP_FLG_ON (Seg->Flag, TCP_FLG_URG) && !TCP_FIN_RCVD (Tcb->State)) { in TcpInput()
1431 Tcb) in TcpInput()
1436 if (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RCVD_URG) && in TcpInput()
1437 TCP_SEQ_GT (Urg, Tcb->RcvUp)) in TcpInput()
1440 Tcb->RcvUp = Urg; in TcpInput()
1443 Tcb->RcvUp = Urg; in TcpInput()
1444 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_RCVD_URG); in TcpInput()
1452 if (TCP_FIN_RCVD (Tcb->State)) { in TcpInput()
1457 Tcb) in TcpInput()
1463 if (TCP_LOCAL_CLOSED (Tcb->State) && (Nbuf->TotalSize != 0)) { in TcpInput()
1467 Tcb) in TcpInput()
1473 TcpQueueData (Tcb, Nbuf); in TcpInput()
1474 if (TcpDeliverData (Tcb) == -1) { in TcpInput()
1478 if (!IsListEmpty (&Tcb->RcvQue)) { in TcpInput()
1479 TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW); in TcpInput()
1495 Tcb->Parent = Parent; in TcpInput()
1496 TcpInsertTcb (Tcb); in TcpInput()
1499 if ((Tcb->State != TCP_CLOSED) && in TcpInput()
1500 (TcpToSendData (Tcb, 0) == 0) && in TcpInput()
1501 (TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW) || (Nbuf->TotalSize != 0))) in TcpInput()
1504 TcpToSendAck (Tcb); in TcpInput()
1511 TcpSendReset (Tcb, Head, Len, Dst, Src, Version); in TcpInput()
1514 ASSERT ((Tcb != NULL) && (Tcb->Sk != NULL)); in TcpInput()
1517 TcpClose (Tcb); in TcpInput()
1523 TcpSendReset (Tcb, Head, Len, Dst, Src, Version); in TcpInput()
1533 if ((Parent != NULL) && (Tcb != NULL)) { in TcpInput()
1535 ASSERT (Tcb->Sk != NULL); in TcpInput()
1536 TcpClose (Tcb); in TcpInput()
1564 TCP_CB *Tcb; in TcpIcmpInput() local
1577 Tcb = TcpLocateTcb ( in TcpIcmpInput()
1585 if (Tcb == NULL || Tcb->State == TCP_CLOSED) { in TcpIcmpInput()
1594 if (!(TCP_SEQ_LEQ (Tcb->SndUna, Seq) && TCP_SEQ_LT (Seq, Tcb->SndNxt))) { in TcpIcmpInput()
1601 Tcb->Sk->IpVersion, in TcpIcmpInput()
1608 SOCK_ERROR (Tcb->Sk, IcmpErrStatus); in TcpIcmpInput()
1613 TcpClose (Tcb); in TcpIcmpInput()