Home
last modified time | relevance | path

Searched refs:t_state (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/sys/netinet/
H A Dtcp_timer.c354 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 Dtcp_usrreq.c181 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 Dtcp_output.c239 ((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 Dtoecore.c226 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 Dtcp_input.c997 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 Dtcp_subr.c1038 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 Dtcp_reass.c576 !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 Dtcp_offload.c150 flags = tcp_outflags[tp->t_state]; in tcp_offload_output()
H A Dsiftr.c685 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 Dtcp_var.h340 t_state:4, /* state of this connection */ member
1190 int32_t t_state; /* (s,p) */ member
H A Dtcp_lro_hpts.c572 if (tp->t_state == TCPS_TIME_WAIT) { in _tcp_lro_flush_tcphpts()
H A Dtcp_syncache.c912 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 Dt4_cpl_io.c249 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 Dt4_tom.c393 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 Drack_bbr_common.c491 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 Dbbr.c577 (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 Drack.c5347 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 Dinet.c283 (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 Dtcpdrop.c258 if (xtp->t_state == TCPS_LISTEN) in tcpdropall()
262 if ((state != -1) && (xtp->t_state != state)) in tcpdropall()
/freebsd/usr.bin/systat/
H A Dnetstat.c219 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 DmibII_tcp.c313 switch (tcpoids[i].tp->t_state) { in op_tcpconn()
/freebsd/tools/tools/switch_tls/
H A Dswitch_tls.c253 if (xtp->t_state == TCPS_LISTEN) in tcpswitchall()
/freebsd/usr.sbin/tcpsso/
H A Dtcpsso.c119 if ((state != -1) && (xtp->t_state != state)) in tcpssoall()
/freebsd/cddl/lib/libdtrace/
H A Dtcp.d227 tcps_state = p == NULL ? -1 : p->t_state;
/freebsd/crypto/heimdal/appl/telnet/
H A DREADME.ORIG615 TIOCGSTATE Get t_state of tty to look at TS_EXTPROC bit
628 int t_state;

12