Lines Matching refs:t_state
759 if (!TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_reass()
897 tp->t_state == TCPS_ESTABLISHED) { in tcp_adaptive_rwtimo_check()
922 ASSERT(tp->t_state == TCPS_FIN_WAIT_2); in tcp_set_finwait_timeout()
2500 tp->t_state = TCPS_LISTEN; in tcp_create_server_socket()
2696 tp->t_state = TCPS_SYN_RECEIVED; in tcp_setup_server_socket()
3195 if (tp->t_state == TCPS_CLOSED) { in tcp_input()
3254 prev_t_state = tp->t_state; in tcp_input()
3274 if (tp->t_state == TCPS_LISTEN && in tcp_input()
3345 ASSERT(tp->t_state == TCPS_SYN_RECEIVED); in tcp_input()
3508 if (tp->t_state == TCPS_ESTABLISHED && BYTES_ACKED(th, tp) > 0) { in tcp_input()
3542 if (tp->accurate_ecn_on && tp->t_state == TCPS_ESTABLISHED) { in tcp_input()
3565 if (ip_ecn == IPTOS_ECN_CE && tp->t_state == TCPS_ESTABLISHED && in tcp_input()
3584 if (tp->t_state == TCPS_ESTABLISHED && in tcp_input()
3592 if (ip_ecn == IPTOS_ECN_CE && tp->t_state == TCPS_ESTABLISHED) { in tcp_input()
3619 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_input()
3631 if (tp->t_state != TCPS_LISTEN && optp) { in tcp_input()
3635 if (tp->t_state != TCPS_LISTEN && (so->so_flags & SOF_MP_SUBFLOW)) { in tcp_input()
3639 if (tp->t_state == TCPS_SYN_SENT && (thflags & TH_SYN)) { in tcp_input()
3659 if (tp->t_state == TCPS_ESTABLISHED && in tcp_input()
3729 if (tp->t_state == TCPS_ESTABLISHED && in tcp_input()
4054 switch (tp->t_state) { in tcp_input()
4258 tp->t_state = TCPS_FIN_WAIT_1; in tcp_input()
4268 tp->t_state = TCPS_ESTABLISHED; in tcp_input()
4326 tp->t_state = TCPS_SYN_RECEIVED; in tcp_input()
4479 ((tp->rcv_wnd == 0 || tp->t_state >= TCPS_CLOSE_WAIT) && in tcp_input()
4483 switch (tp->t_state) { in tcp_input()
4587 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) { in tcp_input()
4603 if (tp->t_state == TCPS_TIME_WAIT && tlen == 0 && in tcp_input()
4719 tp->t_state > TCPS_CLOSE_WAIT) { in tcp_input()
4725 tp->t_state > TCPS_CLOSE_WAIT) { in tcp_input()
4730 if ((so->so_flags & SOF_DEFUNCT) && tp->t_state > TCPS_FIN_WAIT_1) { in tcp_input()
4844 if (tp->t_state == TCPS_SYN_RECEIVED) { in tcp_input()
4889 switch (tp->t_state) { in tcp_input()
4919 tp->t_state = TCPS_FIN_WAIT_1; in tcp_input()
4928 tp->t_state = TCPS_ESTABLISHED; in tcp_input()
5167 !TCPS_HAVERCVDFIN(tp->t_state)) { in tcp_input()
5208 (tp->ecn_flags & TE_SENDIPECT) && tp->t_state == TCPS_ESTABLISHED) { in tcp_input()
5365 (tp->t_state == TCPS_ESTABLISHED || in tcp_input()
5366 tp->t_state == TCPS_FIN_WAIT_1)) { in tcp_input()
5564 tp->t_state == TCPS_ESTABLISHED) { in tcp_input()
5753 switch (tp->t_state) { in tcp_input()
5773 tp->t_state = TCPS_FIN_WAIT_2; in tcp_input()
5799 tp->t_state = TCPS_TIME_WAIT; in tcp_input()
5844 if (tp->t_state == TCPS_ESTABLISHED && in tcp_input()
5867 TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_input()
5961 TCPS_HAVERCVDFIN(tp->t_state) == 0 && in tcp_input()
5962 (TCPS_HAVEESTABLISHED(tp->t_state) || in tcp_input()
5963 (tp->t_state == TCPS_SYN_RECEIVED && in tcp_input()
6133 if (tp->accurate_ecn_on && TCPS_HAVEESTABLISHED(tp->t_state) && in tcp_input()
6134 TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_input()
6156 if (TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_input()
6169 switch (tp->t_state) { in tcp_input()
6181 tp->t_state = TCPS_CLOSE_WAIT; in tcp_input()
6192 tp->t_state = TCPS_CLOSING; in tcp_input()
6206 tp->t_state = TCPS_TIME_WAIT; in tcp_input()
6260 if (tp->t_state == TCPS_SYN_RECEIVED && (thflags & TH_ACK) && in tcp_input()
6469 if (tp->t_state != TCPS_LISTEN) { in tcp_dooptions()
6480 if (tp->t_state != TCPS_LISTEN && in tcp_dooptions()
6481 tp->t_state != TCPS_SYN_SENT) { in tcp_dooptions()
7111 if ((so->so_state & SS_DEFUNCT) || tp->t_state == TCPS_CLOSED) { in tcp_mss()
7423 if (tp != NULL && tp->t_state == TCPS_CLOSED && in tcp_dropdropablreq()