Home
last modified time | relevance | path

Searched refs:t_state (Results 1 – 8 of 8) sorted by relevance

/openthread-3.6.0/third_party/tcplp/bsdtcp/
Dtcp_usrreq.c163 if (tp->t_state != TCPS_CLOSED) { // samkumar: This is a check that I added in tcp6_usr_connect()
257 …int do_fastopen_implied_connect = (nam != NULL) && IS_FASTOPEN(tp->t_flags) && tp->t_state < TCPS_… in tcp_usr_send()
262 if (tp->t_state < TCPS_ESTABLISHED && !IS_FASTOPEN(tp->t_flags)) { in tcp_usr_send()
279 …if ((tp->t_state == TCPS_TIME_WAIT) || (tp->t_state == TCPS_CLOSED && !do_fastopen_implied_connect… in tcp_usr_send()
368 if ((tp->t_state == TCPS_TIME_WAIT) || (tp->t_state == TCPS_CLOSED)) { in tcp_usr_rcvd()
381 (tp->t_state == TCPS_SYN_RECEIVED)) in tcp_usr_rcvd()
414 if ((tp->t_state == TCPS_TIME_WAIT) || (tp->t_state == TCPS_CLOSED)) { in tcp_usr_shutdown()
427 if (tp->t_state != TCPS_CLOSED) in tcp_usr_shutdown()
451 switch (tp->t_state) { in tcp_usrclosed()
479 if (tp->t_state >= TCPS_FIN_WAIT_2) { in tcp_usrclosed()
[all …]
Dtcp_timer.c115 if (tp->t_state < TCPS_ESTABLISHED) in tcp_timer_keep()
118 tp->t_state <= TCPS_CLOSING) { in tcp_timer_keep()
217 if (tp->t_state > TCPS_CLOSE_WAIT && in tcp_timer_persist()
288 if (tp->t_state == TCP6S_TIME_WAIT) { in tcp_timer_2msl()
304 if (tcp_fast_finwait2_recycle && tp->t_state == TCPS_FIN_WAIT_2 && in tcp_timer_2msl()
366 if (tp->t_state == TCPS_SYN_SENT) { in tcp_timer_rexmt()
397 if (tp->t_state == TCPS_SYN_SENT) in tcp_timer_rexmt()
425 if (tcp_rexmit_drop_options && (tp->t_state == TCPS_SYN_SENT) && in tcp_timer_rexmt()
Dtcp_subr.c81 int pstate = tp->t_state; in tcp_state_change()
84 tcplp_sys_log("Socket %p: %s --> %s", tp, tcpstates[tp->t_state], tcpstates[newstate]); in tcp_state_change()
85 tp->t_state = newstate; in tcp_state_change()
142 tp->t_state = TCP6S_CLOSED; in initialize_tcb()
354 if (TCPS_HAVERCVDSYN(tp->t_state)) { in tcp_drop()
Dtcp_output.c135 ((tp->t_state == TCPS_SYN_SENT) || in tcp_output()
136 (tp->t_state == TCPS_SYN_RECEIVED)) && in tcp_output()
178 flags = tcp_outflags[tp->t_state]; in tcp_output()
339 if (tp->t_state != TCPS_SYN_RECEIVED) in tcp_output()
346 (tp->t_state == TCPS_SYN_RECEIVED)) in tcp_output()
406 if ((sendwin == 0) && (TCPS_HAVEESTABLISHED(tp->t_state)) && in tcp_output()
568 !TCPS_HAVERCVDFIN(tp->t_state)) { in tcp_output()
746 if (tp->t_state == TCPS_SYN_RECEIVED) { in tcp_output()
752 } else if (tp->t_state == TCPS_SYN_SENT) { in tcp_output()
792 else if (TCPS_HAVEESTABLISHED(tp->t_state) && in tcp_output()
[all …]
Dtcp_input.c587 if (tp && tp->t_state == TCP6S_TIME_WAIT) { in tcp_input()
649 …KASSERT(tpl != NULL && tpl->t_state == TCP6S_LISTEN, ("listen socket must be in listening state!")… in tcp_input()
966 } else if (tp->t_state == TCPS_LISTEN) { in tcp_input()
1050 KASSERT(tp->t_state > TCPS_LISTEN, ("%s: TCPS_LISTEN", in tcp_do_segment()
1052 KASSERT(tp->t_state != TCPS_TIME_WAIT, ("%s: TCPS_TIME_WAIT", in tcp_do_segment()
1062 if (TCPS_HAVEESTABLISHED(tp->t_state)) in tcp_do_segment()
1145 if (tp->t_state == TCPS_SYN_SENT && (thflags & TH_SYN)) { in tcp_do_segment()
1210 if (tp->t_state == TCPS_ESTABLISHED && in tcp_do_segment()
1480 switch (tp->t_state) { in tcp_do_segment()
1724 switch (tp->t_state) { in tcp_do_segment()
[all …]
Dtcp_reass.c162 if ((th->th_seq != tp->rcv_nxt || !TCPS_HAVEESTABLISHED(tp->t_state)) &&
184 if (th->th_seq != tp->rcv_nxt || !TCPS_HAVEESTABLISHED(tp->t_state)) {
293 if (!TCPS_HAVEESTABLISHED(tp->t_state))
Dtcp_var.h137 int t_state; /* Always CLOSED or LISTEN. */ member
203 uint8_t t_state; /* state of this connection */ member
/openthread-3.6.0/src/core/net/
Dtcp6.cpp171 VerifyOrExit(tp.t_state == TCP6S_CLOSED, error = kErrorInvalidState); in Connect()
315 bool Tcp::Endpoint::IsClosed(void) const { return GetTcb().t_state == TCP6S_CLOSED; } in IsClosed()
529 VerifyOrExit(tp->t_state != TCP6S_CLOSED); in Matches()
571 tpl->t_state = TCP6S_LISTEN; in Listen()
584 tpl->t_state = TCP6S_CLOSED; in StopListening()
599 bool Tcp::Listener::IsClosed(void) const { return GetTcbListen().t_state == TCP6S_CLOSED; } in IsClosed()
613 VerifyOrExit(tpl->t_state == TCP6S_LISTEN); in Matches()
756 if (aEndpoint.GetTcb().t_state == TCP6S_TIME_WAIT && aEndpoint.mDisconnectedCallback != nullptr) in ProcessSignals()