Lines Matching refs:tci
125 struct tcp_connection_info *tci);
2045 tcp_connection_fill_info(struct tcpcb *tp, struct tcp_connection_info *tci) in tcp_connection_fill_info() argument
2049 bzero(tci, sizeof(*tci)); in tcp_connection_fill_info()
2050 tci->tcpi_state = (uint8_t)tp->t_state; in tcp_connection_fill_info()
2053 tci->tcpi_options |= TCPCI_OPT_TIMESTAMPS; in tcp_connection_fill_info()
2056 tci->tcpi_options |= TCPCI_OPT_SACK; in tcp_connection_fill_info()
2059 tci->tcpi_options |= TCPCI_OPT_WSCALE; in tcp_connection_fill_info()
2060 tci->tcpi_snd_wscale = tp->snd_scale; in tcp_connection_fill_info()
2061 tci->tcpi_rcv_wscale = tp->rcv_scale; in tcp_connection_fill_info()
2064 tci->tcpi_options |= TCPCI_OPT_ECN; in tcp_connection_fill_info()
2067 tci->tcpi_flags |= TCPCI_FLAG_LOSSRECOVERY; in tcp_connection_fill_info()
2070 tci->tcpi_flags |= TCPCI_FLAG_REORDERING_DETECTED; in tcp_connection_fill_info()
2072 tci->tcpi_rto = tp->t_timer[TCPT_REXMT] > 0 ? tp->t_rxtcur : 0; in tcp_connection_fill_info()
2073 tci->tcpi_maxseg = tp->t_maxseg; in tcp_connection_fill_info()
2074 tci->tcpi_snd_ssthresh = tp->snd_ssthresh; in tcp_connection_fill_info()
2075 tci->tcpi_snd_cwnd = tp->snd_cwnd; in tcp_connection_fill_info()
2076 tci->tcpi_snd_wnd = tp->snd_wnd; in tcp_connection_fill_info()
2078 tci->tcpi_snd_sbbytes = inp->inp_socket->so_snd.sb_cc; in tcp_connection_fill_info()
2080 tci->tcpi_rcv_wnd = tp->rcv_adv > tp->rcv_nxt ? tp->rcv_adv - tp->rcv_nxt : 0; in tcp_connection_fill_info()
2081 tci->tcpi_rttcur = tp->t_rttcur; in tcp_connection_fill_info()
2082 tci->tcpi_srtt = (tp->t_srtt >> TCP_RTT_SHIFT); in tcp_connection_fill_info()
2083 tci->tcpi_rttvar = (tp->t_rttvar >> TCP_RTTVAR_SHIFT); in tcp_connection_fill_info()
2084 tci->tcpi_txpackets = inp != NULL ? inp->inp_mstat.ms_total.ts_txpackets : 0; in tcp_connection_fill_info()
2085 tci->tcpi_txbytes = inp != NULL ? inp->inp_mstat.ms_total.ts_txbytes : 0; in tcp_connection_fill_info()
2086 tci->tcpi_txretransmitbytes = tp->t_stat.txretransmitbytes; in tcp_connection_fill_info()
2087 tci->tcpi_txretransmitpackets = tp->t_stat.rxmitpkts; in tcp_connection_fill_info()
2088 tci->tcpi_rxpackets = inp != NULL ? inp->inp_mstat.ms_total.ts_rxpackets : 0; in tcp_connection_fill_info()
2089 tci->tcpi_rxbytes = inp != NULL ? inp->inp_mstat.ms_total.ts_rxbytes : 0; in tcp_connection_fill_info()
2090 tci->tcpi_rxoutoforderbytes = tp->t_stat.rxoutoforderbytes; in tcp_connection_fill_info()
2092 tci->tcpi_tfo_syn_data_rcv = !!(tp->t_tfo_stats & TFO_S_SYNDATA_RCV); in tcp_connection_fill_info()
2093 tci->tcpi_tfo_cookie_req_rcv = !!(tp->t_tfo_stats & TFO_S_COOKIEREQ_RECV); in tcp_connection_fill_info()
2094 tci->tcpi_tfo_cookie_sent = !!(tp->t_tfo_stats & TFO_S_COOKIE_SENT); in tcp_connection_fill_info()
2095 tci->tcpi_tfo_cookie_invalid = !!(tp->t_tfo_stats & TFO_S_COOKIE_INVALID); in tcp_connection_fill_info()
2096 tci->tcpi_tfo_cookie_req = !!(tp->t_tfo_stats & TFO_S_COOKIE_REQ); in tcp_connection_fill_info()
2097 tci->tcpi_tfo_cookie_rcv = !!(tp->t_tfo_stats & TFO_S_COOKIE_RCV); in tcp_connection_fill_info()
2098 tci->tcpi_tfo_syn_data_sent = !!(tp->t_tfo_stats & TFO_S_SYN_DATA_SENT); in tcp_connection_fill_info()
2099 tci->tcpi_tfo_syn_data_acked = !!(tp->t_tfo_stats & TFO_S_SYN_DATA_ACKED); in tcp_connection_fill_info()
2100 tci->tcpi_tfo_syn_loss = !!(tp->t_tfo_stats & TFO_S_SYN_LOSS); in tcp_connection_fill_info()
2101 tci->tcpi_tfo_cookie_wrong = !!(tp->t_tfo_stats & TFO_S_COOKIE_WRONG); in tcp_connection_fill_info()
2102 tci->tcpi_tfo_no_cookie_rcv = !!(tp->t_tfo_stats & TFO_S_NO_COOKIE_RCV); in tcp_connection_fill_info()
2103 tci->tcpi_tfo_heuristics_disable = !!(tp->t_tfo_stats & TFO_S_HEURISTICS_DISABLE); in tcp_connection_fill_info()
2104 tci->tcpi_tfo_send_blackhole = !!(tp->t_tfo_stats & TFO_S_SEND_BLACKHOLE); in tcp_connection_fill_info()
2105 tci->tcpi_tfo_recv_blackhole = !!(tp->t_tfo_stats & TFO_S_RECV_BLACKHOLE); in tcp_connection_fill_info()
2106 tci->tcpi_tfo_onebyte_proxy = !!(tp->t_tfo_stats & TFO_S_ONE_BYTE_PROXY); in tcp_connection_fill_info()
2918 struct tcp_connection_info tci; in tcp_ctloutput() local
2919 tcp_connection_fill_info(tp, &tci); in tcp_ctloutput()
2920 error = sooptcopyout(sopt, &tci, in tcp_ctloutput()