diff options
author | bms <bms@FreeBSD.org> | 2007-02-02 18:34:18 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2007-02-02 18:34:18 +0000 |
commit | e9ca37568e53aa11d50a3ad06c564a60657e8696 (patch) | |
tree | 0ae1360fb35941307f57c06705ebfa1191ce32c5 /sys/netinet/tcp.h | |
parent | 1c6bb0fe159297bcaaca160eae20feea65708abc (diff) | |
download | FreeBSD-src-e9ca37568e53aa11d50a3ad06c564a60657e8696.zip FreeBSD-src-e9ca37568e53aa11d50a3ad06c564a60657e8696.tar.gz |
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.
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 2e3467a..04c8663 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; |