Lines Matching refs:tci
128 struct tcp_connection_info *tci);
2030 tcp_connection_fill_info(struct tcpcb *tp, struct tcp_connection_info *tci) in tcp_connection_fill_info() argument
2034 bzero(tci, sizeof(*tci)); in tcp_connection_fill_info()
2035 tci->tcpi_state = (uint8_t)tp->t_state; in tcp_connection_fill_info()
2038 tci->tcpi_options |= TCPCI_OPT_TIMESTAMPS; in tcp_connection_fill_info()
2041 tci->tcpi_options |= TCPCI_OPT_SACK; in tcp_connection_fill_info()
2044 tci->tcpi_options |= TCPCI_OPT_WSCALE; in tcp_connection_fill_info()
2045 tci->tcpi_snd_wscale = tp->snd_scale; in tcp_connection_fill_info()
2046 tci->tcpi_rcv_wscale = tp->rcv_scale; in tcp_connection_fill_info()
2049 tci->tcpi_options |= TCPCI_OPT_ECN; in tcp_connection_fill_info()
2052 tci->tcpi_flags |= TCPCI_FLAG_LOSSRECOVERY; in tcp_connection_fill_info()
2055 tci->tcpi_flags |= TCPCI_FLAG_REORDERING_DETECTED; in tcp_connection_fill_info()
2057 tci->tcpi_rto = tp->t_timer[TCPT_REXMT] > 0 ? tp->t_rxtcur : 0; in tcp_connection_fill_info()
2058 tci->tcpi_maxseg = tp->t_maxseg; in tcp_connection_fill_info()
2059 tci->tcpi_snd_ssthresh = tp->snd_ssthresh; in tcp_connection_fill_info()
2060 tci->tcpi_snd_cwnd = tp->snd_cwnd; in tcp_connection_fill_info()
2061 tci->tcpi_snd_wnd = tp->snd_wnd; in tcp_connection_fill_info()
2063 tci->tcpi_snd_sbbytes = inp->inp_socket->so_snd.sb_cc; in tcp_connection_fill_info()
2065 tci->tcpi_rcv_wnd = tp->rcv_adv > tp->rcv_nxt ? tp->rcv_adv - tp->rcv_nxt : 0; in tcp_connection_fill_info()
2066 tci->tcpi_rttcur = tp->t_rttcur; in tcp_connection_fill_info()
2067 tci->tcpi_srtt = (tp->t_srtt >> TCP_RTT_SHIFT); in tcp_connection_fill_info()
2068 tci->tcpi_rttvar = (tp->t_rttvar >> TCP_RTTVAR_SHIFT); in tcp_connection_fill_info()
2069 tci->tcpi_txpackets = inp != NULL ? inp->inp_stat->txpackets : 0; in tcp_connection_fill_info()
2070 tci->tcpi_txbytes = inp != NULL ? inp->inp_stat->txbytes : 0; in tcp_connection_fill_info()
2071 tci->tcpi_txretransmitbytes = tp->t_stat.txretransmitbytes; in tcp_connection_fill_info()
2072 tci->tcpi_txretransmitpackets = tp->t_stat.rxmitpkts; in tcp_connection_fill_info()
2073 tci->tcpi_rxpackets = inp != NULL ? inp->inp_stat->rxpackets : 0; in tcp_connection_fill_info()
2074 tci->tcpi_rxbytes = inp != NULL ? inp->inp_stat->rxbytes : 0; in tcp_connection_fill_info()
2075 tci->tcpi_rxoutoforderbytes = tp->t_stat.rxoutoforderbytes; in tcp_connection_fill_info()
2077 tci->tcpi_tfo_syn_data_rcv = !!(tp->t_tfo_stats & TFO_S_SYNDATA_RCV); in tcp_connection_fill_info()
2078 tci->tcpi_tfo_cookie_req_rcv = !!(tp->t_tfo_stats & TFO_S_COOKIEREQ_RECV); in tcp_connection_fill_info()
2079 tci->tcpi_tfo_cookie_sent = !!(tp->t_tfo_stats & TFO_S_COOKIE_SENT); in tcp_connection_fill_info()
2080 tci->tcpi_tfo_cookie_invalid = !!(tp->t_tfo_stats & TFO_S_COOKIE_INVALID); in tcp_connection_fill_info()
2081 tci->tcpi_tfo_cookie_req = !!(tp->t_tfo_stats & TFO_S_COOKIE_REQ); in tcp_connection_fill_info()
2082 tci->tcpi_tfo_cookie_rcv = !!(tp->t_tfo_stats & TFO_S_COOKIE_RCV); in tcp_connection_fill_info()
2083 tci->tcpi_tfo_syn_data_sent = !!(tp->t_tfo_stats & TFO_S_SYN_DATA_SENT); in tcp_connection_fill_info()
2084 tci->tcpi_tfo_syn_data_acked = !!(tp->t_tfo_stats & TFO_S_SYN_DATA_ACKED); in tcp_connection_fill_info()
2085 tci->tcpi_tfo_syn_loss = !!(tp->t_tfo_stats & TFO_S_SYN_LOSS); in tcp_connection_fill_info()
2086 tci->tcpi_tfo_cookie_wrong = !!(tp->t_tfo_stats & TFO_S_COOKIE_WRONG); in tcp_connection_fill_info()
2087 tci->tcpi_tfo_no_cookie_rcv = !!(tp->t_tfo_stats & TFO_S_NO_COOKIE_RCV); in tcp_connection_fill_info()
2088 tci->tcpi_tfo_heuristics_disable = !!(tp->t_tfo_stats & TFO_S_HEURISTICS_DISABLE); in tcp_connection_fill_info()
2089 tci->tcpi_tfo_send_blackhole = !!(tp->t_tfo_stats & TFO_S_SEND_BLACKHOLE); in tcp_connection_fill_info()
2090 tci->tcpi_tfo_recv_blackhole = !!(tp->t_tfo_stats & TFO_S_RECV_BLACKHOLE); in tcp_connection_fill_info()
2091 tci->tcpi_tfo_onebyte_proxy = !!(tp->t_tfo_stats & TFO_S_ONE_BYTE_PROXY); in tcp_connection_fill_info()
2901 struct tcp_connection_info tci; in tcp_ctloutput() local
2902 tcp_connection_fill_info(tp, &tci); in tcp_ctloutput()
2903 error = sooptcopyout(sopt, &tci, in tcp_ctloutput()