Lines Matching refs:t_state
996 switch (tp->t_state) { in tcp_input_with_port()
1022 if ((tp->t_port != port) && (tp->t_state > TCPS_LISTEN)) { in tcp_input_with_port()
1046 KASSERT(tp->t_state == TCPS_LISTEN || !SOLISTENING(so), in tcp_input_with_port()
1048 if (tp->t_state == TCPS_LISTEN && SOLISTENING(so)) { in tcp_input_with_port()
1156 KASSERT(tp->t_state == TCPS_SYN_RECEIVED, in tcp_input_with_port()
1363 } else if (tp->t_state == TCPS_LISTEN) { in tcp_input_with_port()
1552 KASSERT(tp->t_state > TCPS_LISTEN, ("%s: TCPS_LISTEN", in tcp_do_segment()
1554 KASSERT(tp->t_state != TCPS_TIME_WAIT, ("%s: TCPS_TIME_WAIT", in tcp_do_segment()
1578 if ((tp->t_state == TCPS_SYN_SENT) && (thflags & TH_ACK) && in tcp_do_segment()
1648 if (tp->t_state == TCPS_SYN_SENT && (thflags & TH_SYN)) { in tcp_do_segment()
1751 if (tp->t_state == TCPS_ESTABLISHED && in tcp_do_segment()
1966 switch (tp->t_state) { in tcp_do_segment()
2167 KASSERT(tp->t_state != TCPS_SYN_SENT, in tcp_do_segment()
2175 switch (tp->t_state) { in tcp_do_segment()
2205 if ((thflags & TH_SYN) && tp->t_state != TCPS_SYN_SENT && in tcp_do_segment()
2206 tp->t_state != TCPS_SYN_RECEIVED) { in tcp_do_segment()
2259 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) { in tcp_do_segment()
2329 TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_do_segment()
2334 s, __func__, tcpstates[tp->t_state], tlen); in tcp_do_segment()
2406 if (tp->t_state == TCPS_SYN_RECEIVED || in tcp_do_segment()
2408 if (tp->t_state == TCPS_SYN_RECEIVED && in tcp_do_segment()
2459 switch (tp->t_state) { in tcp_do_segment()
2584 (TCPS_HAVERCVDFIN(tp->t_state) == 0)) { in tcp_do_segment()
2967 if ((tp->t_state <= TCPS_CLOSE_WAIT && in tcp_do_segment()
3038 switch (tp->t_state) { in tcp_do_segment()
3120 TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_do_segment()
3189 tfo_syn = ((tp->t_state == TCPS_SYN_RECEIVED) && in tcp_do_segment()
3192 TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_do_segment()
3211 (TCPS_HAVEESTABLISHED(tp->t_state) || in tcp_do_segment()
3250 TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_do_segment()
3303 tcpstates[tp->t_state], tlen); in tcp_do_segment()
3310 tcpstates[tp->t_state], tlen); in tcp_do_segment()
3319 tcpstates[tp->t_state]); in tcp_do_segment()
3333 if (TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_do_segment()
3349 switch (tp->t_state) { in tcp_do_segment()
3413 if (tp->t_state == TCPS_SYN_RECEIVED && (thflags & TH_ACK) && in tcp_do_segment()