Home
last modified time | relevance | path

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

12

/freebsd/sys/netinet/
H A Dtcp_timer.c353 if (tp->t_state == TCPS_TIME_WAIT) { in tcp_timer_2msl()
355 } else if (tp->t_state == TCPS_FIN_WAIT_2 && in tcp_timer_2msl()
395 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_timer_keep()
412 if (tp->t_state < TCPS_ESTABLISHED) in tcp_timer_keep()
416 tp->t_state <= TCPS_CLOSING) { in tcp_timer_keep()
527 if (tp->t_state > TCPS_CLOSE_WAIT && in tcp_timer_persist()
589 if (tp->t_state == TCPS_SYN_SENT) { in tcp_timer_rexmt()
629 if ((tp->t_state == TCPS_SYN_SENT) || in tcp_timer_rexmt()
630 (tp->t_state == TCPS_SYN_RECEIVED)) in tcp_timer_rexmt()
651 ((tp->t_state == TCPS_ESTABLISHED) || in tcp_timer_rexmt()
[all …]
H A Dtcp_usrreq.c179 tp->t_state = TCPS_CLOSED; in tcp_usr_attach()
209 tp->t_state < TCPS_SYN_SENT, in tcp_usr_detach()
212 TCPSTATES_DEC(tp->t_state); in tcp_usr_detach()
682 if (tp->t_state == TCPS_TIME_WAIT) in tcp_usr_disconnect()
857 if ((tp->t_flags & TF_FASTOPEN) && (tp->t_state == TCPS_SYN_RECEIVED)) in tcp_usr_rcvd()
929 if (nam != NULL && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send()
930 if (tp->t_state == TCPS_LISTEN) { in tcp_usr_send()
1029 if (nam && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send()
1030 KASSERT(tp->t_state == TCPS_CLOSED, in tcp_usr_send()
1076 if (TCPS_HAVEESTABLISHED(tp->t_state) && in tcp_usr_send()
[all …]
H A Dtcp_input.c543 if (((tp->t_state == TCPS_ESTABLISHED) || in cc_ecnpkt_handler_flags()
544 (tp->t_state == TCPS_FIN_WAIT_1) || in cc_ecnpkt_handler_flags()
545 (tp->t_state == TCPS_FIN_WAIT_2)) && in cc_ecnpkt_handler_flags()
960 switch (tp->t_state) { in tcp_input_with_port()
986 if ((tp->t_port != port) && (tp->t_state > TCPS_LISTEN)) { in tcp_input_with_port()
1010 KASSERT(tp->t_state == TCPS_LISTEN || !SOLISTENING(so), in tcp_input_with_port()
1012 if (tp->t_state == TCPS_LISTEN && SOLISTENING(so)) { in tcp_input_with_port()
1121 KASSERT(tp->t_state == TCPS_SYN_RECEIVED, in tcp_input_with_port()
1508 KASSERT(tp->t_state > TCPS_LISTEN, ("%s: TCPS_LISTEN", in tcp_do_segment()
1510 KASSERT(tp->t_state != TCPS_TIME_WAIT, ("%s: TCPS_TIME_WAIT", in tcp_do_segment()
[all …]
H A Dtcp_output.c236 ((tp->t_state == TCPS_SYN_SENT) || in tcp_default_output()
237 (tp->t_state == TCPS_SYN_RECEIVED)) && in tcp_default_output()
277 flags = tcp_outflags[tp->t_state]; in tcp_default_output()
433 if (tp->t_state != TCPS_SYN_RECEIVED) in tcp_default_output()
440 (tp->t_state == TCPS_SYN_RECEIVED)) in tcp_default_output()
469 ((tp->t_state == TCPS_SYN_SENT) && in tcp_default_output()
497 if ((sendwin == 0) && (TCPS_HAVEESTABLISHED(tp->t_state)) && in tcp_default_output()
657 !TCPS_HAVERCVDFIN(tp->t_state)) { in tcp_default_output()
812 if (tp->t_state == TCPS_SYN_RECEIVED) { in tcp_default_output()
818 } else if (tp->t_state == TCPS_SYN_SENT) { in tcp_default_output()
[all …]
H A Dtoecore.c224 if (tp->t_state != TCPS_LISTEN) in toe_listen_start()
242 KASSERT(tp->t_state == TCPS_LISTEN, in toe_listen_start_event()
243 ("%s: t_state %s", __func__, tcpstates[tp->t_state])); in toe_listen_start_event()
257 KASSERT(tp->t_state == TCPS_LISTEN, in toe_listen_stop_event()
258 ("%s: t_state %s", __func__, tcpstates[tp->t_state])); in toe_listen_stop_event()
400 if (tp->t_state == TCPS_TIME_WAIT && th != NULL) { in toe_4tuple_check()
H A Dtcp_ecn.c356 if ((tp->t_state == TCPS_ESTABLISHED) || in tcp_ecn_input_segment()
357 (tp->t_state == TCPS_FIN_WAIT_1) || in tcp_ecn_input_segment()
358 (tp->t_state == TCPS_FIN_WAIT_2)) in tcp_ecn_input_segment()
H A Dtcp_subr.c1058 if ((tp->t_state == TCPS_SYN_SENT) || in tcp_default_fb_init()
1059 (tp->t_state == TCPS_SYN_RECEIVED)) in tcp_default_fb_init()
1073 if (tp->t_state <= TCPS_LISTEN || tp->t_state >= TCPS_TIME_WAIT) in tcp_default_fb_init()
1080 if ((!TCPS_HAVEESTABLISHED(tp->t_state) || sbavail(&so->so_snd) || in tcp_default_fb_init()
1088 if (TCPS_HAVEESTABLISHED(tp->t_state) && tp->snd_wnd == 0 && in tcp_default_fb_init()
1099 TCPS_HAVEESTABLISHED(tp->t_state) ? TP_KEEPIDLE(tp) : in tcp_default_fb_init()
2125 (tp->t_state == TCPS_CLOSED || in tcp_respond()
2126 (tp->t_state > TCPS_LISTEN && tp->t_port != port)), in tcp_respond()
2130 ntohs(port), tcpstates[tp->t_state])); in tcp_respond()
2395 if (TCPS_HAVERCVDSYN(tp->t_state)) { in tcp_drop()
[all …]
H A Dtcp_reass.c575 !TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_reass()
591 if ((th->th_seq != tp->rcv_nxt || !TCPS_HAVEESTABLISHED(tp->t_state)) && in tcp_reass()
954 if (th->th_seq == tp->rcv_nxt && TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_reass()
1049 if (!TCPS_HAVEESTABLISHED(tp->t_state)) in tcp_reass()
H A Dtcp_offload.c149 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
1220 int32_t t_state; /* (s,p) */ member
H A Dtcp_lro_hpts.c574 if (tp->t_state == TCPS_TIME_WAIT) { in _tcp_lro_flush_tcphpts()
H A Dtcp_syncache.c922 tp->t_state = TCPS_SYN_RECEIVED; in syncache_socket()
2580 xt.t_state = TCPS_SYN_RECEIVED; in syncache_pcblist()
/freebsd/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c489 if (tp->t_state < TCPS_ESTABLISHED) in ctf_outstanding()
667 if (tp->t_state == TCPS_SYN_RECEIVED && (thflags & TH_ACK) && in ctf_do_dropafterack()
718 KASSERT(tp->t_state != TCPS_SYN_SENT, in ctf_process_rst()
727 switch (tp->t_state) { in ctf_process_rst()
H A Dbbr.c575 (tp->t_state < TCPS_ESTABLISHED)) { in bbr_timer_start()
742 if ((tp->t_state == TCPS_CLOSED) || in bbr_start_hpts_timer()
743 (tp->t_state == TCPS_LISTEN)) { in bbr_start_hpts_timer()
825 (tp->t_state <= TCPS_CLOSING)) { in bbr_start_hpts_timer()
831 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in bbr_start_hpts_timer()
962 if (((rsm == NULL) || (tp->t_state < TCPS_ESTABLISHED)) && in bbr_timer_audit()
979 (tp->t_state <= TCPS_CLOSING)) && in bbr_timer_audit()
4360 if (bbr->r_state && (bbr->r_state != tp->t_state)) in bbr_timeout_rack()
4554 if (bbr->r_state && (bbr->r_state != tp->t_state)) in bbr_timeout_tlp()
4764 if (tp->t_state > TCPS_CLOSE_WAIT && in bbr_timeout_persist()
[all …]
H A Drack.c5208 TCPS_HAVEESTABLISHED(tp->t_state) && in rack_do_goodput_measurement()
5244 if (tp->t_state >= TCPS_FIN_WAIT_1) { in rack_do_goodput_measurement()
6025 if ((tp->t_state < TCPS_ESTABLISHED) || in rack_timer_start()
6065 if ((TCPS_HAVEESTABLISHED(tp->t_state) == 0) && in rack_timer_start()
6409 if ((tp->t_state == TCPS_CLOSED) || in rack_start_hpts_timer()
6410 (tp->t_state == TCPS_LISTEN)) { in rack_start_hpts_timer()
6519 (tp->t_state <= TCPS_CLOSING)) { in rack_start_hpts_timer()
6525 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in rack_start_hpts_timer()
6764 if (rack->r_state && (rack->r_state != tp->t_state)) in rack_timeout_rack()
7056 if (rack->r_state && (rack->r_state != tp->t_state)) in rack_timeout_tlp()
[all …]
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_cpl_io.c255 tcpstates[tp->t_state], in send_reset()
367 KASSERT(tp->t_state == TCPS_SYN_SENT || in make_established()
368 tp->t_state == TCPS_SYN_RECEIVED, in make_established()
369 ("%s: TCP state %s", __func__, tcpstates[tp->t_state])); in make_established()
1615 if (tp->t_state >= TCPS_ESTABLISHED) in t4_send_fin()
1638 __func__, toep->tid, tcpstates[tp->t_state])); in t4_send_rst()
1687 __func__, tid, tp ? tcpstates[tp->t_state] : "no tp", toep->flags, in do_peer_close()
1720 switch (tp->t_state) { in do_peer_close()
1747 __func__, tid, tp->t_state); in do_peer_close()
1786 __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/usr.bin/netstat/
H A Dinet.c292 (istcp && tp->t_state == TCPS_LISTEN) in protopr()
524 if (tp->t_state < 0 || tp->t_state >= TCP_NSTATES) in protopr()
525 xo_emit("{:tcp-state/%-11d/%d}", tp->t_state); in protopr()
528 tcpstates[tp->t_state]); in protopr()
555 (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/contrib/bsnmp/snmp_mibII/
H A DmibII_tcp.c332 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/usr.bin/systat/
H A Dnetstat.c218 enter(xip, &xip->xi_socket, xtp->t_state, in fetchnetstat()
/freebsd/cddl/lib/libdtrace/
H A Dtcp.d227 tcps_state = p == NULL ? -1 : p->t_state;

12