Lines Matching defs:ti
1120 tcp_fill_info(struct tcpcb *tp, struct tcp_info *ti)
1124 bzero(ti, sizeof(*ti));
1126 ti->tcpi_state = tp->t_state;
1130 ti->tcpi_options |= TCPI_OPT_TIMESTAMPS;
1132 ti->tcpi_options |= TCPI_OPT_SACK;
1134 ti->tcpi_options |= TCPI_OPT_WSCALE;
1135 ti->tcpi_snd_wscale = tp->snd_scale;
1136 ti->tcpi_rcv_wscale = tp->rcv_scale;
1141 ti->tcpi_flags |= TCPI_FLAG_LOSSRECOVERY;
1143 ti->tcpi_flags &= ~TCPI_FLAG_LOSSRECOVERY;
1145 ti->tcpi_rto = tp->t_timer[TCPT_REXMT] ? tp->t_rxtcur : 0;
1146 ti->tcpi_snd_mss = tp->t_maxseg;
1147 ti->tcpi_rcv_mss = tp->t_maxseg;
1149 ti->tcpi_rttcur = tp->t_rttcur;
1150 ti->tcpi_srtt = tp->t_srtt >> TCP_RTT_SHIFT;
1151 ti->tcpi_rttvar = tp->t_rttvar >> TCP_RTTVAR_SHIFT;
1153 ti->tcpi_snd_ssthresh = tp->snd_ssthresh;
1154 ti->tcpi_snd_cwnd = tp->snd_cwnd;
1155 ti->tcpi_snd_sbbytes = tp->t_inpcb->inp_socket->so_snd.sb_cc;
1157 ti->tcpi_rcv_space = tp->rcv_wnd;
1159 ti->tcpi_snd_wnd = tp->snd_wnd;
1160 ti->tcpi_snd_nxt = tp->snd_nxt;
1161 ti->tcpi_rcv_nxt = tp->rcv_nxt;
1166 ti->tcpi_snd_bw = (tp->t_bwmeas->bw_sndbw * 8000);
1169 ti->tcpi_last_outif = (tp->t_inpcb->inp_last_outifp == NULL) ? 0 :
1172 //atomic_get_64(ti->tcpi_txbytes, &inp->inp_stat->txbytes);
1173 ti->tcpi_txbytes = inp->inp_stat->txbytes;
1174 ti->tcpi_txretransmitbytes = tp->t_stat.txretransmitbytes;
1175 ti->tcpi_txunacked = tp->snd_max - tp->snd_una;
1177 //atomic_get_64(ti->tcpi_rxbytes, &inp->inp_stat->rxbytes);
1178 ti->tcpi_rxbytes = inp->inp_stat->rxbytes;
1179 ti->tcpi_rxduplicatebytes = tp->t_stat.rxduplicatebytes;
1184 tcp_fill_info_for_info_tuple(struct info_tuple *itpl, struct tcp_info *ti)
1235 tcp_fill_info(tp, ti);
1246 struct tcp_info ti;
1259 error = tcp_fill_info_for_info_tuple(&itpl, &ti);
1263 error = SYSCTL_OUT(req, &ti, sizeof(struct tcp_info));
1564 struct tcp_info ti;
1566 tcp_fill_info(tp, &ti);
1567 error = sooptcopyout(sopt, &ti, sizeof(struct tcp_info));