diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2007-02-02 18:34:18 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2007-02-02 18:34:18 +0000 |
commit | 1baaf8347c4456bf08be6411d56cea565b1e03e7 (patch) | |
tree | 0ae1360fb35941307f57c06705ebfa1191ce32c5 /sys/netinet/tcp.h | |
parent | e8117c82f6332bd20028ac50306bd43fd213d079 (diff) | |
download | src-test2-1baaf8347c4456bf08be6411d56cea565b1e03e7.tar.gz src-test2-1baaf8347c4456bf08be6411d56cea565b1e03e7.zip |
Expose smoothed RTT and RTT variance measurements to userland via
socket option TCP_INFO.
Note that the units used in the original Linux API are in microseconds,
so use a 64-bit mantissa to convert FreeBSD's internal measurements
from struct tcpcb from ticks.
Notes
Notes:
svn path=/head/; revision=166433
Diffstat (limited to 'sys/netinet/tcp.h')
-rw-r--r-- | sys/netinet/tcp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h index 2e3467a3b8f6..04c86633963b 100644 --- a/sys/netinet/tcp.h +++ b/sys/netinet/tcp.h @@ -208,8 +208,8 @@ struct tcp_info { /* Metrics; variable units. */ u_int32_t __tcpi_pmtu; u_int32_t __tcpi_rcv_ssthresh; - u_int32_t __tcpi_rtt; - u_int32_t __tcpi_rttvar; + u_int32_t tcpi_rtt; /* Smoothed RTT in usecs. */ + u_int32_t tcpi_rttvar; /* RTT variance in usecs. */ u_int32_t tcpi_snd_ssthresh; /* Slow start threshold. */ u_int32_t tcpi_snd_cwnd; /* Send congestion window. */ u_int32_t __tcpi_advmss; |