]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcp_sample: extend support for get_tcp_info to macOs.
authorDavid CARLIER <devnexen@gmail.com>
Mon, 11 Apr 2022 11:53:11 +0000 (12:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Apr 2022 15:51:09 +0000 (17:51 +0200)
commit7747d465d54a1e367e9bf9c07c263d7f1f7fd481
tree44bbc8fa3c6b3abab0fc7e4996d7b76597a1cbd5
parent5c83e3a1563cd7face299bf08037e51f976eb5e3
MINOR: tcp_sample: extend support for get_tcp_info to macOs.

MacOS can feed fc_rtt, fc_rttvar, fc_sacked, fc_lost and fc_retrans
so let's expose them on this platform.

Note that at the tcp(7) level, the API is slightly different, as
struct tcp_info is called tcp_connection_info and TCP_INFO is
called TCP_CONNECTION_INFO, so for convenience these ones were
defined to point to their equivalent. However there is a small
difference now in that tcpi_rtt is called tcpi_rttcur on this
platform, which forces us to make a special case for it before
other platforms.
include/haproxy/compat.h
src/tcp_sample.c