blob: 4b2efeb2e509a05149b67097e03ad940f75aba5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- acceptor/TransportInfo.cpp.orig 2020-09-08 16:56:17 UTC
+++ acceptor/TransportInfo.cpp
@@ -42,6 +42,16 @@ bool TransportInfo::initWithSocket(const folly::AsyncS
if (mss > 0) {
cwnd = (cwndBytes + mss - 1) / mss;
}
+#elif defined(__FreeBSD__)
+ rtt = microseconds(tcpinfo.tcpi_rtt * 1000);
+ rtt_var = tcpinfo.tcpi_rttvar * 1000;
+ rto = tcpinfo.tcpi_rto * 1000;
+ rtx_tm = -1;
+ mss = tcpinfo.tcpi_snd_mss;
+ cwndBytes = tcpinfo.tcpi_snd_cwnd;
+ if (mss > 0) {
+ cwnd = (cwndBytes + mss - 1) / mss;
+ }
#else
rtt = microseconds(tcpinfo.tcpi_rtt);
rtt_var = tcpinfo.tcpi_rttvar;
|