Lines Matching refs:tcp_state
596 if (tcp->tcp_state == TCPS_CLOSE_WAIT) { in tcp_input()
848 DEBUG_1("tcp_shutdown: tcp_state %x\n", tcp->tcp_state); in tcp_shutdown()
849 switch (tcp->tcp_state) { in tcp_shutdown()
913 switch (tcp->tcp_state) { in tcp_close()
948 if (tcp->tcp_state <= TCPS_LISTEN) in tcp_close()
968 tcp->tcp_state >= TCPS_ESTABLISHED) { in tcp_close()
975 tcp->tcp_state >= TCPS_ESTABLISHED && in tcp_close()
1001 if (tcp->tcp_state == TCPS_ESTABLISHED || in tcp_close()
1002 tcp->tcp_state == TCPS_CLOSE_WAIT) in tcp_close()
1004 if (tcp->tcp_state == TCPS_SYN_SENT || in tcp_close()
1005 tcp->tcp_state == TCPS_SYN_RCVD) in tcp_close()
1028 if (tcp->tcp_state > TCPS_LISTEN || tcp->tcp_state < TCPS_BOUND) { in tcp_listen()
1033 if (tcp->tcp_state != TCPS_LISTEN) { in tcp_listen()
1036 tcp->tcp_state = TCPS_LISTEN; in tcp_listen()
1062 listener->tcp_state != TCPS_LISTEN) { in tcp_accept()
1156 if (reuseaddr && tcp->tcp_state > TCPS_LISTEN) { in tcp_bindi()
1191 if (tcp->tcp_state >= TCPS_BOUND) { in tcp_bind()
1224 tcp->tcp_state = TCPS_BOUND; in tcp_bind()
1244 if (tmp_tcp->tcp_state < TCPS_SYN_SENT) in tcp_conn_check()
1400 tcp->tcp_state = TCPS_SYN_SENT; in tcp_connect()
1523 acceptor->tcp_state = TCPS_LISTEN; in tcp_accept_comm()
1736 if (tcp != NULL && tcp->tcp_state == state) in tcp_state_wait()
1784 if (tcp->tcp_state != state) { in tcp_state_wait()
1841 tcp->tcp_state >= min_state) { in tcp_lookup_ipv4()
1854 tcp->tcp_state >= min_state) { in tcp_lookup_ipv4()
1923 if (tcp->tcp_state == TCPS_TIME_WAIT) in tcp_clean_death()
1979 if (rwnd < old_max_rwnd && tcp->tcp_state > TCPS_SYN_SENT) { in tcp_rwnd_set()
2687 tcp->tcp_state); in tcp_rput_data()
2702 if (tcp1->tcp_state == TCPS_LISTEN) { in tcp_rput_data()
2741 if (tcp->tcp_state == TCPS_TIME_WAIT) { in tcp_rput_data()
2751 assert(tcp != NULL && tcp->tcp_state != TCPS_TIME_WAIT); in tcp_rput_data()
2768 switch (tcp->tcp_state) { in tcp_rput_data()
2867 tcp->tcp_state = TCPS_ESTABLISHED; in tcp_rput_data()
2923 tcp->tcp_state = TCPS_SYN_RCVD; in tcp_rput_data()
3259 switch (tcp->tcp_state) { in tcp_rput_data()
3274 assert(tcp->tcp_state != TCPS_TIME_WAIT); in tcp_rput_data()
3301 assert(tcp->tcp_state != TCPS_TIME_WAIT); in tcp_rput_data()
3317 if (tcp->tcp_state == TCPS_SYN_RCVD) { in tcp_rput_data()
3422 tcp->tcp_state = TCPS_ESTABLISHED; in tcp_rput_data()
3988 if (tcp->tcp_state > TCPS_ESTABLISHED) { in tcp_rput_data()
3989 switch (tcp->tcp_state) { in tcp_rput_data()
3992 tcp->tcp_state = TCPS_FIN_WAIT_2; in tcp_rput_data()
4024 tcp->tcp_state = TCPS_TIME_WAIT; in tcp_rput_data()
4033 assert(tcp->tcp_state != TCPS_TIME_WAIT); in tcp_rput_data()
4045 switch (tcp->tcp_state) { in tcp_rput_data()
4048 tcp->tcp_state = TCPS_CLOSE_WAIT; in tcp_rput_data()
4053 tcp->tcp_state = TCPS_CLOSING; in tcp_rput_data()
4058 tcp->tcp_state = TCPS_TIME_WAIT; in tcp_rput_data()
4306 switch (tcp->tcp_state) { in tcp_timer()
4459 tcp->tcp_state, tcp_display(tcp, NULL, in tcp_timer()
4478 if (tcp->tcp_state == TCPS_SYN_RCVD) { in tcp_timer()
4630 tcpstate = tcp->tcp_state; in tcp_wput_data()
4754 tcp->tcp_state < TCPS_ESTABLISHED); in tcp_wput_data()
5457 tcp->tcp_state = TCPS_IDLE; in tcp_init_values()
5567 if (tcp->tcp_snd_ts_ok && tcp->tcp_state > TCPS_SYN_SENT) { in tcp_xmit_ctl()
5880 switch (tcp->tcp_state) { in tcp_xmit_mp()
5982 switch (tcp->tcp_state) { in tcp_xmit_mp()
5985 tcp->tcp_state = TCPS_FIN_WAIT_1; in tcp_xmit_mp()
5988 tcp->tcp_state = TCPS_LAST_ACK; in tcp_xmit_mp()
6002 if (tcp->tcp_state != TCPS_SYN_SENT) { in tcp_xmit_mp()
6418 switch (tcp->tcp_state) { in tcp_display()
6459 (void) sprintf(buf1, "TCPUnkState(%d)", tcp->tcp_state); in tcp_display()
6630 assert(tcp->tcp_state == TCPS_TIME_WAIT); in tcp_time_wait_remove()
6674 assert(tcp_time_wait_tail->tcp_state == TCPS_TIME_WAIT); in tcp_time_wait_append()
6971 if (tcp->tcp_state < TCPS_SYN_RCVD || in tcp_xmit_end()
6972 tcp->tcp_state > TCPS_CLOSE_WAIT) { in tcp_xmit_end()