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()
3346 ASSERT(tp->t_state == TCPS_SYN_RECEIVED); in tcp_input()
3509 if (tp->t_state == TCPS_ESTABLISHED && BYTES_ACKED(th, tp) > 0) { in tcp_input()
3543 if (tp->accurate_ecn_on && tp->t_state == TCPS_ESTABLISHED) { in tcp_input()
3566 if (ip_ecn == IPTOS_ECN_CE && tp->t_state == TCPS_ESTABLISHED && in tcp_input()
3585 if (tp->t_state == TCPS_ESTABLISHED && in tcp_input()
3593 if (ip_ecn == IPTOS_ECN_CE && tp->t_state == TCPS_ESTABLISHED) { in tcp_input()
3620 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_input()
3632 if (tp->t_state != TCPS_LISTEN && optp) { in tcp_input()
3636 if (tp->t_state != TCPS_LISTEN && (so->so_flags & SOF_MP_SUBFLOW)) { in tcp_input()
3640 if (tp->t_state == TCPS_SYN_SENT && (thflags & TH_SYN)) { in tcp_input()
3660 if (tp->t_state == TCPS_ESTABLISHED && in tcp_input()
3730 if (tp->t_state == TCPS_ESTABLISHED && in tcp_input()
4055 switch (tp->t_state) { in tcp_input()
4259 tp->t_state = TCPS_FIN_WAIT_1; in tcp_input()
4269 tp->t_state = TCPS_ESTABLISHED; in tcp_input()
4327 tp->t_state = TCPS_SYN_RECEIVED; in tcp_input()
4480 ((tp->rcv_wnd == 0 || tp->t_state >= TCPS_CLOSE_WAIT) && in tcp_input()
4484 switch (tp->t_state) { in tcp_input()
4588 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) { in tcp_input()
4604 if (tp->t_state == TCPS_TIME_WAIT && tlen == 0 && in tcp_input()
4720 tp->t_state > TCPS_CLOSE_WAIT) { in tcp_input()
4726 tp->t_state > TCPS_CLOSE_WAIT) { in tcp_input()
4731 if ((so->so_flags & SOF_DEFUNCT) && tp->t_state > TCPS_FIN_WAIT_1) { in tcp_input()
4845 if (tp->t_state == TCPS_SYN_RECEIVED) { in tcp_input()
4890 switch (tp->t_state) { in tcp_input()
4920 tp->t_state = TCPS_FIN_WAIT_1; in tcp_input()
4929 tp->t_state = TCPS_ESTABLISHED; in tcp_input()
5176 !TCPS_HAVERCVDFIN(tp->t_state)) { in tcp_input()
5217 (tp->ecn_flags & TE_SENDIPECT) && tp->t_state == TCPS_ESTABLISHED) { in tcp_input()
5374 (tp->t_state == TCPS_ESTABLISHED || in tcp_input()
5375 tp->t_state == TCPS_FIN_WAIT_1)) { in tcp_input()
5573 tp->t_state == TCPS_ESTABLISHED) { in tcp_input()
5762 switch (tp->t_state) { in tcp_input()
5782 tp->t_state = TCPS_FIN_WAIT_2; in tcp_input()
5808 tp->t_state = TCPS_TIME_WAIT; in tcp_input()
5853 if (tp->t_state == TCPS_ESTABLISHED && in tcp_input()
5876 TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_input()
5970 TCPS_HAVERCVDFIN(tp->t_state) == 0 && in tcp_input()
5971 (TCPS_HAVEESTABLISHED(tp->t_state) || in tcp_input()
5972 (tp->t_state == TCPS_SYN_RECEIVED && in tcp_input()
6142 if (tp->accurate_ecn_on && TCPS_HAVEESTABLISHED(tp->t_state) && in tcp_input()
6143 TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_input()
6165 if (TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_input()
6178 switch (tp->t_state) { in tcp_input()
6190 tp->t_state = TCPS_CLOSE_WAIT; in tcp_input()
6201 tp->t_state = TCPS_CLOSING; in tcp_input()
6215 tp->t_state = TCPS_TIME_WAIT; in tcp_input()
6269 if (tp->t_state == TCPS_SYN_RECEIVED && (thflags & TH_ACK) && in tcp_input()
6478 if (tp->t_state != TCPS_LISTEN) { in tcp_dooptions()
6489 if (tp->t_state != TCPS_LISTEN && in tcp_dooptions()
6490 tp->t_state != TCPS_SYN_SENT) { in tcp_dooptions()
7120 if ((so->so_state & SS_DEFUNCT) || tp->t_state == TCPS_CLOSED) { in tcp_mss()
7432 if (tp != NULL && tp->t_state == TCPS_CLOSED && in tcp_dropdropablreq()