error: no member named 'tcpi_retransmits' in 'tcp_info'; did you mean '__tcpi_retransmits'?
yurivict opened this issue · 3 comments
yurivict commented
/usr/ports/net/wangle/work/wangle-2020.05.25.00/wangle/acceptor/TransportInfo.cpp:49:20: error: no member named 'tcpi_retransmits' in 'tcp_info'; did you mean '__tcpi_retransmits'?
rtx_tm = tcpinfo.tcpi_retransmits;
^~~~~~~~~~~~~~~~
__tcpi_retransmits
/usr/include/netinet/tcp.h:272:11: note: '__tcpi_retransmits' declared here
u_int8_t __tcpi_retransmits;
^
1 error generated.
OS: FreeBSD 12.1
Version: 2020.05.25.00
clang-9
yurivict commented
Also:
/usr/ports/net/wangle/work/wangle-2020.05.25.00/wangle/acceptor/TransportInfo.cpp:36:30: error: no member named 'tcpi_srtt' in 'tcp_info'; did you mean 'tcpi_rtt'?
rtt = microseconds(tcpinfo.tcpi_srtt * 1000);
^~~~~~~~~
tcpi_rtt
/usr/include/netinet/tcp.h:299:12: note: 'tcpi_rtt' declared here
u_int32_t tcpi_rtt; /* Smoothed RTT in usecs. */
^
/usr/ports/net/wangle/work/wangle-2020.05.25.00/wangle/acceptor/TransportInfo.cpp:40:17: error: no member named 'tcpi_maxseg' in 'tcp_info'
mss = tcpinfo.tcpi_maxseg;
~~~~~~~ ^
chadaustin commented
I'll put up a patch for this soon, but you can just tweak the ifdefs and add one to use __tcpi_retransmits instead.
chadaustin commented
Fixed in 8cc0043