/freebsd/sys/netinet/ |
H A D | tcp_timer.c | 354 if (tp->t_state == TCPS_TIME_WAIT) { in tcp_timer_2msl() 356 } else if (tp->t_state == TCPS_FIN_WAIT_2 && in tcp_timer_2msl() 396 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_timer_keep() 413 if (tp->t_state < TCPS_ESTABLISHED) in tcp_timer_keep() 417 tp->t_state <= TCPS_CLOSING) { in tcp_timer_keep() 525 if (tp->t_state > TCPS_CLOSE_WAIT && in tcp_timer_persist() 587 if (tp->t_state == TCPS_SYN_SENT) { in tcp_timer_rexmt() 627 if ((tp->t_state == TCPS_SYN_SENT) || in tcp_timer_rexmt() 628 (tp->t_state == TCPS_SYN_RECEIVED)) in tcp_timer_rexmt() 650 ((tp->t_state == TCPS_ESTABLISHED) || in tcp_timer_rexmt() [all …]
|
H A D | tcp_usrreq.c | 181 tp->t_state = TCPS_CLOSED; in tcp_usr_attach() 211 tp->t_state < TCPS_SYN_SENT, in tcp_usr_detach() 711 if (tp->t_state == TCPS_TIME_WAIT) in tcp_usr_disconnect() 894 if ((tp->t_flags & TF_FASTOPEN) && (tp->t_state == TCPS_SYN_RECEIVED)) in tcp_usr_rcvd() 969 if (nam != NULL && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send() 970 if (tp->t_state == TCPS_LISTEN) { in tcp_usr_send() 1069 if (nam && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send() 1070 KASSERT(tp->t_state == TCPS_CLOSED, in tcp_usr_send() 1116 if (TCPS_HAVEESTABLISHED(tp->t_state) && in tcp_usr_send() 1157 if (nam && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send() [all …]
|
H A D | tcp_output.c | 239 ((tp->t_state == TCPS_SYN_SENT) || in tcp_default_output() 240 (tp->t_state == TCPS_SYN_RECEIVED)) && in tcp_default_output() 280 flags = tcp_outflags[tp->t_state]; in tcp_default_output() 436 if (tp->t_state != TCPS_SYN_RECEIVED) in tcp_default_output() 443 (tp->t_state == TCPS_SYN_RECEIVED)) in tcp_default_output() 472 ((tp->t_state == TCPS_SYN_SENT) && in tcp_default_output() 500 if ((sendwin == 0) && (TCPS_HAVEESTABLISHED(tp->t_state)) && in tcp_default_output() 660 !TCPS_HAVERCVDFIN(tp->t_state)) { in tcp_default_output() 815 if (tp->t_state == TCPS_SYN_RECEIVED) { in tcp_default_output() 821 } else if (tp->t_state == TCPS_SYN_SENT) { in tcp_default_output() [all …]
|
H A D | toecore.c | 226 if (tp->t_state != TCPS_LISTEN) in toe_listen_start() 244 KASSERT(tp->t_state == TCPS_LISTEN, in toe_listen_start_event() 245 ("%s: t_state %s", __func__, tcpstates[tp->t_state])); in toe_listen_start_event() 259 KASSERT(tp->t_state == TCPS_LISTEN, in toe_listen_stop_event() 260 ("%s: t_state %s", __func__, tcpstates[tp->t_state])); in toe_listen_stop_event() 402 if (tp->t_state == TCPS_TIME_WAIT && th != NULL) { in toe_4tuple_check()
|
H A D | tcp_input.c | 997 switch (tp->t_state) { in tcp_input_with_port() 1023 if ((tp->t_port != port) && (tp->t_state > TCPS_LISTEN)) { in tcp_input_with_port() 1047 KASSERT(tp->t_state == TCPS_LISTEN || !SOLISTENING(so), in tcp_input_with_port() 1049 if (tp->t_state == TCPS_LISTEN && SOLISTENING(so)) { in tcp_input_with_port() 1157 KASSERT(tp->t_state == TCPS_SYN_RECEIVED, in tcp_input_with_port() 1544 KASSERT(tp->t_state > TCPS_LISTEN, ("%s: TCPS_LISTEN", in tcp_do_segment() 1546 KASSERT(tp->t_state != TCPS_TIME_WAIT, ("%s: TCPS_TIME_WAIT", in tcp_do_segment() 1570 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() 1758 if (tp->t_state == TCPS_ESTABLISHED && in tcp_do_segment() [all …]
|
H A D | tcp_subr.c | 1038 KASSERT(tp->t_state < TCPS_TIME_WAIT, in tcp_default_fb_init() 1040 tp->t_state)); in tcp_default_fb_init() 1050 if ((tp->t_state == TCPS_SYN_SENT) || in tcp_default_fb_init() 1051 (tp->t_state == TCPS_SYN_RECEIVED)) in tcp_default_fb_init() 1064 if (tp->t_state <= TCPS_LISTEN || tp->t_state >= TCPS_TIME_WAIT) in tcp_default_fb_init() 1071 if ((!TCPS_HAVEESTABLISHED(tp->t_state) || sbavail(&so->so_snd) || in tcp_default_fb_init() 1079 if (TCPS_HAVEESTABLISHED(tp->t_state) && tp->snd_wnd == 0 && in tcp_default_fb_init() 1090 TCPS_HAVEESTABLISHED(tp->t_state) ? TP_KEEPIDLE(tp) : in tcp_default_fb_init() 2132 (tp->t_state == TCPS_CLOSED || in tcp_respond() 2133 (tp->t_state > TCPS_LISTEN && tp->t_port != port)), in tcp_respond() [all …]
|
H A D | tcp_reass.c | 576 !TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_reass() 592 if ((th->th_seq != tp->rcv_nxt || !TCPS_HAVEESTABLISHED(tp->t_state)) && in tcp_reass() 955 if (th->th_seq == tp->rcv_nxt && TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_reass() 1050 if (!TCPS_HAVEESTABLISHED(tp->t_state)) in tcp_reass()
|
H A D | tcp_offload.c | 150 flags = tcp_outflags[tp->t_state]; in tcp_offload_output()
|
H A D | siftr.c | 685 pn->conn_state = tp->t_state; in siftr_siftdata() 808 if (tp == NULL || tp->t_state < TCPS_ESTABLISHED) { in siftr_chkpkt() 957 if (tp == NULL || tp->t_state < TCPS_ESTABLISHED) { in siftr_chkpkt6()
|
H A D | tcp_var.h | 340 t_state:4, /* state of this connection */ member 1190 int32_t t_state; /* (s,p) */ member
|
H A D | tcp_lro_hpts.c | 572 if (tp->t_state == TCPS_TIME_WAIT) { in _tcp_lro_flush_tcphpts()
|
H A D | tcp_syncache.c | 912 tp->t_state = TCPS_SYN_RECEIVED; in syncache_socket() 2528 xt.t_state = TCPS_SYN_RECEIVED; in syncache_pcblist()
|
/freebsd/sys/dev/cxgbe/tom/ |
H A D | t4_cpl_io.c | 249 tcpstates[tp->t_state], in send_reset() 361 KASSERT(tp->t_state == TCPS_SYN_SENT || in make_established() 362 tp->t_state == TCPS_SYN_RECEIVED, in make_established() 363 ("%s: TCP state %s", __func__, tcpstates[tp->t_state])); in make_established() 1277 if (tp->t_state >= TCPS_ESTABLISHED) in t4_send_fin() 1300 __func__, toep->tid, tcpstates[tp->t_state])); in t4_send_rst() 1349 __func__, tid, tp ? tcpstates[tp->t_state] : "no tp", toep->flags, in do_peer_close() 1381 switch (tp->t_state) { in do_peer_close() 1408 __func__, tid, tp->t_state); in do_peer_close() 1447 __func__, tid, tp ? tcpstates[tp->t_state] : "no tp", toep->flags); in do_close_con_rpl() [all …]
|
H A D | t4_tom.c | 393 if (tp->t_state == TCPS_SYN_SENT) { in t4_pcb_detach() 400 toep->tid, tcpstates[tp->t_state], toep, toep->flags, inp, in t4_pcb_detach() 430 if (tp->t_state != TCPS_ESTABLISHED) in t4_ctloutput()
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | rack_bbr_common.c | 491 if (tp->t_state < TCPS_ESTABLISHED) in ctf_outstanding() 671 if (tp->t_state == TCPS_SYN_RECEIVED && (thflags & TH_ACK) && in ctf_do_dropafterack() 716 KASSERT(tp->t_state != TCPS_SYN_SENT, in ctf_process_rst() 725 switch (tp->t_state) { in ctf_process_rst()
|
H A D | bbr.c | 577 (tp->t_state < TCPS_ESTABLISHED)) { in bbr_timer_start() 744 if ((tp->t_state == TCPS_CLOSED) || in bbr_start_hpts_timer() 745 (tp->t_state == TCPS_LISTEN)) { in bbr_start_hpts_timer() 827 (tp->t_state <= TCPS_CLOSING)) { in bbr_start_hpts_timer() 833 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in bbr_start_hpts_timer() 966 if (((rsm == NULL) || (tp->t_state < TCPS_ESTABLISHED)) && in bbr_timer_audit() 983 (tp->t_state <= TCPS_CLOSING)) && in bbr_timer_audit() 4367 if (bbr->r_state && (bbr->r_state != tp->t_state)) in bbr_timeout_rack() 4561 if (bbr->r_state && (bbr->r_state != tp->t_state)) in bbr_timeout_tlp() 4771 if (tp->t_state > TCPS_CLOSE_WAIT && in bbr_timeout_persist() [all …]
|
H A D | rack.c | 5347 TCPS_HAVEESTABLISHED(tp->t_state) && in rack_do_goodput_measurement() 5383 if (tp->t_state >= TCPS_FIN_WAIT_1) { in rack_do_goodput_measurement() 6163 if ((tp->t_state < TCPS_ESTABLISHED) || in rack_timer_start() 6203 if ((TCPS_HAVEESTABLISHED(tp->t_state) == 0) && in rack_timer_start() 6550 if ((tp->t_state == TCPS_CLOSED) || in rack_start_hpts_timer() 6551 (tp->t_state == TCPS_LISTEN)) { in rack_start_hpts_timer() 6660 (tp->t_state <= TCPS_CLOSING)) { in rack_start_hpts_timer() 6666 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in rack_start_hpts_timer() 6896 if (rack->r_state && (rack->r_state != tp->t_state)) in rack_timeout_rack() 7185 if (rack->r_state && (rack->r_state != tp->t_state)) in rack_timeout_tlp() [all …]
|
/freebsd/usr.bin/netstat/ |
H A D | inet.c | 283 (istcp && tp->t_state == TCPS_LISTEN) in protopr() 511 if (tp->t_state < 0 || tp->t_state >= TCP_NSTATES) in protopr() 512 xo_emit("{:tcp-state/%-11d}", tp->t_state); in protopr() 515 tcpstates[tp->t_state]); in protopr() 542 (tp->t_state >= TCPS_ESTABLISHED ? in protopr()
|
/freebsd/usr.sbin/tcpdrop/ |
H A D | tcpdrop.c | 258 if (xtp->t_state == TCPS_LISTEN) in tcpdropall() 262 if ((state != -1) && (xtp->t_state != state)) in tcpdropall()
|
/freebsd/usr.bin/systat/ |
H A D | netstat.c | 219 enter_kvm(inpcb, &sockb, tcpcb.t_state, "tcp"); in fetchnetstat_kvm() 308 xtp->t_state, "tcp"); in fetchnetstat_sysctl()
|
/freebsd/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_tcp.c | 313 switch (tcpoids[i].tp->t_state) { in op_tcpconn()
|
/freebsd/tools/tools/switch_tls/ |
H A D | switch_tls.c | 253 if (xtp->t_state == TCPS_LISTEN) in tcpswitchall()
|
/freebsd/usr.sbin/tcpsso/ |
H A D | tcpsso.c | 119 if ((state != -1) && (xtp->t_state != state)) in tcpssoall()
|
/freebsd/cddl/lib/libdtrace/ |
H A D | tcp.d | 227 tcps_state = p == NULL ? -1 : p->t_state;
|
/freebsd/crypto/heimdal/appl/telnet/ |
H A D | README.ORIG | 615 TIOCGSTATE Get t_state of tty to look at TS_EXTPROC bit 628 int t_state;
|