Lines Matching refs:t_state
989 switch (tp->t_state) { in tcp_input_with_port()
1015 if ((tp->t_port != port) && (tp->t_state > TCPS_LISTEN)) { in tcp_input_with_port()
1039 KASSERT(tp->t_state == TCPS_LISTEN || !SOLISTENING(so), in tcp_input_with_port()
1041 if (tp->t_state == TCPS_LISTEN && SOLISTENING(so)) { in tcp_input_with_port()
1149 KASSERT(tp->t_state == TCPS_SYN_RECEIVED, in tcp_input_with_port()
1356 } else if (tp->t_state == TCPS_LISTEN) { in tcp_input_with_port()
1545 KASSERT(tp->t_state > TCPS_LISTEN, ("%s: TCPS_LISTEN", in tcp_do_segment()
1547 KASSERT(tp->t_state != TCPS_TIME_WAIT, ("%s: TCPS_TIME_WAIT", in tcp_do_segment()
1571 if ((tp->t_state == TCPS_SYN_SENT) && (thflags & TH_ACK) && in tcp_do_segment()
1646 if (tp->t_state == TCPS_SYN_SENT && (thflags & TH_SYN)) { in tcp_do_segment()
1749 if (tp->t_state == TCPS_ESTABLISHED && in tcp_do_segment()
1962 switch (tp->t_state) { in tcp_do_segment()
2163 KASSERT(tp->t_state != TCPS_SYN_SENT, in tcp_do_segment()
2171 switch (tp->t_state) { in tcp_do_segment()
2201 if ((thflags & TH_SYN) && tp->t_state != TCPS_SYN_SENT && in tcp_do_segment()
2202 tp->t_state != TCPS_SYN_RECEIVED) { in tcp_do_segment()
2255 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) { in tcp_do_segment()
2325 TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_do_segment()
2330 s, __func__, tcpstates[tp->t_state], tlen); in tcp_do_segment()
2402 if (tp->t_state == TCPS_SYN_RECEIVED || in tcp_do_segment()
2404 if (tp->t_state == TCPS_SYN_RECEIVED && in tcp_do_segment()
2455 switch (tp->t_state) { in tcp_do_segment()
2580 (TCPS_HAVERCVDFIN(tp->t_state) == 0)) { in tcp_do_segment()
2963 if ((tp->t_state <= TCPS_CLOSE_WAIT && in tcp_do_segment()
3034 switch (tp->t_state) { in tcp_do_segment()
3116 TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_do_segment()
3185 tfo_syn = ((tp->t_state == TCPS_SYN_RECEIVED) && in tcp_do_segment()
3188 TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_do_segment()
3207 (TCPS_HAVEESTABLISHED(tp->t_state) || in tcp_do_segment()
3246 TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_do_segment()
3299 tcpstates[tp->t_state], tlen); in tcp_do_segment()
3306 tcpstates[tp->t_state], tlen); in tcp_do_segment()
3315 tcpstates[tp->t_state]); in tcp_do_segment()
3329 if (TCPS_HAVERCVDFIN(tp->t_state) == 0) { in tcp_do_segment()
3345 switch (tp->t_state) { in tcp_do_segment()
3409 if (tp->t_state == TCPS_SYN_RECEIVED && (thflags & TH_ACK) && in tcp_do_segment()