Lines Matching refs:tcp_info
1231 struct tcp_info tcp_info;
1232 socklen_t tcp_info_len = sizeof(tcp_info);
1235 rv = getsockopt(fd, IPPROTO_TCP, TCP_INFO, &tcp_info, &tcp_info_len);
1241 auto avail_packets = tcp_info.tcpi_snd_cwnd > tcp_info.tcpi_unacked
1242 ? tcp_info.tcpi_snd_cwnd - tcp_info.tcpi_unacked
1264 (avail_packets + 2) * (tcp_info.tcpi_snd_mss - tls_overhead);
1276 // LOG(INFO) << "snd_cwnd=" << tcp_info.tcpi_snd_cwnd
1277 // << ", unacked=" << tcp_info.tcpi_unacked
1278 // << ", snd_mss=" << tcp_info.tcpi_snd_mss
1279 // << ", rtt=" << tcp_info.tcpi_rtt << "us"
1280 // << ", rcv_space=" << tcp_info.tcpi_rcv_space
1286 hint->rwin = tcp_info.tcpi_rcv_space;