| /xnu-11417.101.15/bsd/kern/ |
| H A D | tty.c | 352 if (!ISSET(tp->t_state, TS_ISOPEN)) { in ttyopen() 353 SET(tp->t_state, TS_ISOPEN); in ttyopen() 355 SET(tp->t_state, TS_CONNECTED); in ttyopen() 448 tp->t_state = 0; in ttyclose() 524 !ISSET(tp->t_state, TS_TBLOCK)) { in ttyinput() 566 if (!ISSET(tp->t_state, TS_TYPEN) && ISSET(iflag, ISTRIP)) { in ttyinput() 573 if (ISSET(tp->t_state, TS_LNCH)) { in ttyinput() 575 CLR(tp->t_state, TS_LNCH); in ttyinput() 599 SET(tp->t_state, TS_LNCH); in ttyinput() 653 if (!ISSET(tp->t_state, TS_TTSTOP)) { in ttyinput() [all …]
|
| H A D | tty_dev.c | 275 if ((tp->t_state & TS_ISOPEN) == 0) { in ptsopen() 283 } else if ((tp->t_state & TS_XCLUDE) && kauth_cred_issuser(kauth_cred_get())) { in ptsopen() 290 while ((tp->t_state & TS_CARR_ON) == 0) { in ptsopen() 303 CLR(tp->t_state, TS_IOCTL_NOT_OK); in ptsopen() 438 if (tp->t_state & TS_TTSTOP) { in ptsstart() 498 if (tp->t_oproc || (tp->t_state & TS_ISOPEN)) { in ptcopen() 510 CLR(tp->t_state, TS_ZOMBIE); in ptcopen() 511 SET(tp->t_state, TS_IOCTL_NOT_OK); in ptcopen() 584 if (tp->t_state & TS_ISOPEN) { in ptcclose() 585 tp->t_state &= ~(TS_CARR_ON | TS_CONNECTED); in ptcclose() [all …]
|
| H A D | tty_ptmx.c | 548 assert(tp->t_state & TS_ISOPEN); in ptsd_kqops_detach() 589 (tp->t_state & TS_CONNECTED)) { in ptsd_kqops_common() 601 if (tp->t_state & TS_ZOMBIE) { in ptsd_kqops_common() 685 assert(tp->t_state & TS_ISOPEN); in ptsd_kqfilter() 860 if (tp->t_outq.c_cc && !(tp->t_state & TS_TTSTOP)) { in ptmx_kqops_common() 886 if (!(tp->t_state & TS_CONNECTED) || (tp->t_state & TS_ZOMBIE)) { in ptmx_kqops_common()
|
| H A D | socket_info.c | 157 tcpsi->tcpsi_state = tp->t_state; in fill_socketinfo()
|
| /xnu-11417.101.15/bsd/dev/dtrace/scripts/ |
| H A D | tcp.d | 174 T->t_state == TCPS_CLOSED ? "state-closed" : 175 T->t_state == TCPS_LISTEN ? "state-listen" : 176 T->t_state == TCPS_SYN_SENT ? "state-syn-sent" : 177 T->t_state == TCPS_SYN_RECEIVED ? "state-syn-received" : 178 T->t_state == TCPS_ESTABLISHED ? "state-established" : 179 T->t_state == TCPS_CLOSE_WAIT ? "state-close-wait" : 180 T->t_state == TCPS_FIN_WAIT_1 ? "state-fin-wait1" : 181 T->t_state == TCPS_CLOSING ? "state-closing" : 182 T->t_state == TCPS_LAST_ACK ? "state-last-ack" : 183 T->t_state == TCPS_FIN_WAIT_2 ? "state-fin-wait2" : [all …]
|
| /xnu-11417.101.15/bsd/dev/i386/ |
| H A D | km.c | 106 if (!(tp->t_state & TS_ISOPEN)) { in kmopen() 114 } else if ((tp->t_state & TS_XCLUDE) && proc_suser(pp)) { in kmopen() 119 tp->t_state |= TS_CARR_ON; /* lie and say carrier exists and is on. */ in kmopen() 296 if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) { in kmstart() 302 tp->t_state |= TS_BUSY; in kmstart() 379 tp->t_state &= ~TS_BUSY; in kmoutput()
|
| /xnu-11417.101.15/bsd/dev/arm/ |
| H A D | km.c | 83 if (!(tp->t_state & TS_ISOPEN)) { in kmopen() 91 } else if ((tp->t_state & TS_XCLUDE) && proc_suser(pp)) { in kmopen() 96 tp->t_state |= TS_CARR_ON; /* lie and say carrier exists and is in kmopen() 278 if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP)) { in kmstart() 284 tp->t_state |= TS_BUSY; in kmstart() 374 tp->t_state &= ~TS_BUSY; in kmoutput()
|
| /xnu-11417.101.15/bsd/netinet/ |
| H A D | tcp_timer.c | 682 tp->t_state != TCPS_CLOSED) { in tcp_garbage_collect() 699 ((tp != NULL) && (tp->t_state == TCPS_CLOSED) && in tcp_garbage_collect() 843 if (tw_tp->t_state == TCPS_CLOSED || in tcp_gc() 1052 if (tp->t_state != TCPS_TIME_WAIT && in tcp_timers() 1053 tp->t_state != TCPS_FIN_WAIT_2 && in tcp_timers() 1058 if (tp->t_state == TCPS_FIN_WAIT_2) { in tcp_timers() 1099 if (tp->t_state == TCPS_ESTABLISHED && in tcp_timers() 1134 tp->t_state == TCPS_ESTABLISHED) { in tcp_timers() 1150 tp->t_state == TCPS_ESTABLISHED) { in tcp_timers() 1164 (tp->t_state == TCPS_ESTABLISHED) && in tcp_timers() [all …]
|
| H A D | tcp_input.c | 778 if (!TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_reass() 899 tp->t_state == TCPS_ESTABLISHED) { in tcp_adaptive_rwtimo_check() 924 ASSERT(tp->t_state == TCPS_FIN_WAIT_2); in tcp_set_finwait_timeout() 2465 if (tp->t_state == TCPS_CLOSED) { in tcp_input() 2517 prev_t_state = tp->t_state; in tcp_input() 2537 if (tp->t_state == TCPS_LISTEN && in tcp_input() 2882 tp->t_state = TCPS_LISTEN; in tcp_input() 2942 if (tp->t_state == TCPS_ESTABLISHED && tlen > 0) { in tcp_input() 2974 if (tp->t_state == TCPS_ESTABLISHED && BYTES_ACKED(th, tp) > 0) { in tcp_input() 3008 if (TCP_ACC_ECN_ON(tp) && tp->t_state == TCPS_ESTABLISHED) { in tcp_input() [all …]
|
| H A D | tcp_usrreq.c | 398 tp->t_state = TCPS_LISTEN; in tcp_usr_listen() 428 tp->t_state = TCPS_LISTEN; in tcp6_usr_listen() 1060 if (TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_usr_rcvd() 1243 if (nam && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send() 1291 if (nam && tp->t_state < TCPS_SYN_SENT) { in tcp_usr_send() 1529 otp->t_state == TCPS_TIME_WAIT && in tcp_connect() 1595 tp->t_state = TCPS_SYN_SENT; in tcp_connect() 1665 otp->t_state == TCPS_TIME_WAIT && in tcp6_connect() 1729 tp->t_state = TCPS_SYN_SENT; in tcp6_connect() 1760 ti->tcpi_state = (uint8_t)tp->t_state; in tcp_fill_info() [all …]
|
| H A D | tcp_output.c | 886 if (tp->t_state >= TCPS_CLOSE_WAIT) { in tcp_output() 1004 flags = tcp_outflags[tp->t_state]; in tcp_output() 1223 if (tp->t_state == TCPS_SYN_RECEIVED && TFO_ENABLED(tp) && tp->snd_nxt == tp->snd_una + 1) { in tcp_output() 1228 if (tp->t_state != TCPS_SYN_RECEIVED || TFO_ENABLED(tp)) { in tcp_output() 1234 if (len > 0 && tp->t_state == TCPS_SYN_SENT) { in tcp_output() 1288 if ((flags & TH_SYN) && tp->t_state <= TCPS_SYN_SENT && TFO_ENABLED(tp)) { in tcp_output() 1417 if (tp->t_state >= TCPS_ESTABLISHED && in tcp_output() 1504 if (TCP_RLEDBAT_ENABLED(tp) || (tcp_rledbat && tp->t_state < in tcp_output() 1587 if (tp->t_state == TCPS_SYN_RECEIVED && in tcp_output() 1599 tp->t_state != TCPS_ESTABLISHED) { in tcp_output() [all …]
|
| H A D | tcp_timer.h | 292 #define TCP_ADD_REXMTSLOP(tp) (tp->t_state >= TCPS_ESTABLISHED)
|
| H A D | tcp_newreno.c | 280 if (tp->t_state >= TCPS_ESTABLISHED) { in tcp_newreno_after_timeout()
|
| H A D | tcp_subr.c | 1248 if (TCPS_HAVERCVDSYN(tp->t_state)) { in tcp_drop() 1252 tp->t_state = TCPS_CLOSED; in tcp_drop() 1309 } else if (tp->t_state < TCPS_ESTABLISHED && tp->t_srtt == 0 && in tcp_getrt_rtt() 1573 tp->t_state = TCPS_CLOSED; in tcp_close() 1701 tp->t_state = TCPS_CLOSED; in tcp_close() 1842 if (tp->t_state == TCPS_ESTABLISHED && in tcp_notify() 1849 } else if (tp->t_state < TCPS_ESTABLISHED && tp->t_rxtshift > 3 && in tcp_notify() 1920 otp->t_state = tp->t_state; in tcpcb_to_otcpcb() 2104 otp->t_state = tp->t_state; in tcpcb_to_xtcpcb64() 2823 if (tp && tp->t_state == TCPS_SYN_SENT) { in tcp_drop_syn_sent() [all …]
|
| H A D | in_pcblist.c | 243 xt->t_state = tp->t_state; in tcpcb_to_xtcpcb_n() 645 switch (tp->t_state) { in inpcb_get_if_ports_used()
|
| H A D | mptcp_subr.c | 213 sototcpcb(mpts->mpts_socket)->t_state, mpts->mpts_flags); in mptcpstats_get_index() 626 if (sototcpcb(mpts->mpts_socket)->t_state == TCPS_CLOSED) { in mptcp_subflow_disconnecting() 803 mpts->mpts_flags, sototcpcb(mpts->mpts_socket)->t_state); in mptcp_check_subflows_and_add() 973 tp->t_state != TCPS_ESTABLISHED || in mptcp_pure_handover_subflows_remove() 1030 tp->t_state != TCPS_ESTABLISHED) { in mptcp_handover_subflows_remove() 2810 if (tp->t_state != TCPS_CLOSED) { in mptcp_subflow_abort() 4346 if (tp->t_state != TCPS_CLOSED) { in mptcp_subflow_mustrst_ev() 4410 if (!TCPS_HAVEESTABLISHED(tp->t_state) || in mptcp_subflow_adaptive_rtimo_ev() 4411 TCPS_HAVERCVDFIN2(tp->t_state)) { in mptcp_subflow_adaptive_rtimo_ev() 4440 if (!TCPS_HAVEESTABLISHED(tp->t_state) || in mptcp_subflow_adaptive_wtimo_ev() [all …]
|
| H A D | tcp_log.c | 139 tcpstates[tp->t_state], \ 819 tcpstates[tp->t_state], \ in tcp_log_drop_pcb() 1124 if (new_state == tp->t_state) { in tcp_log_state_change()
|
| H A D | tcp_log.h | 160 if (tp->t_state == TCPS_LISTEN && (inp->inp_log_flags & TLEF_MASK_DST) == 0) { in tcp_is_log_enabled()
|
| H A D | tcp_var.h | 386 int t_state; /* state of this connection */ member 1101 int t_state; /* state of this connection */ member 1535 int t_state; /* state of this connection */ member 1618 int t_state; /* state of this connection */ member
|
| H A D | tcp_ledbat.c | 516 if (tp->t_state >= TCPS_ESTABLISHED) { in tcp_ledbat_after_timeout()
|
| H A D | tcp_cubic.c | 562 if (tp->t_state < TCPS_ESTABLISHED && in tcp_cubic_after_timeout()
|
| H A D | mptcp.c | 905 !TCPS_HAVEESTABLISHED(tp->t_state) || in mptcp_get_subflow() 906 tp->t_state > TCPS_CLOSE_WAIT) { in mptcp_get_subflow()
|
| H A D | tcp_prague.c | 672 if (tp->t_state < TCPS_ESTABLISHED && in tcp_prague_after_timeout()
|
| /xnu-11417.101.15/tools/lldbmacros/ |
| H A D | net.py | 483 if tp.t_state == 0: 485 if tp.t_state == 1: 487 if tp.t_state == 2: 489 if tp.t_state == 3: 491 if tp.t_state == 4: 493 if tp.t_state == 5: 495 if tp.t_state == 6: 497 if tp.t_state == 7: 499 if tp.t_state == 8: 501 if tp.t_state == 9: [all …]
|
| /xnu-11417.101.15/bsd/sys/ |
| H A D | tty.h | 126 int t_state; /* Device and driver (TS*) state. */ member
|