]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcp_sample: clarifying samples support per os, for further expansion.
authorDavid CARLIER <devnexen@gmail.com>
Mon, 11 Apr 2022 11:41:24 +0000 (12:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Apr 2022 15:51:09 +0000 (17:51 +0200)
commit5c83e3a1563cd7face299bf08037e51f976eb5e3
tree22583812117af60dd87cca1e22b580b5eed446ff
parent39e436e222236c4e6c0efe95c304fe89fd01e111
MINOR: tcp_sample: clarifying samples support per os, for further expansion.

While there is some overlap between what each OS provides in terms of
retrievable info, each set is not a real subset of another one and this
results in increasing complexity when trying to add support for new OSes.
Let's just condition each item to the OS that support it. It's not pretty
but at least it will avoid a real mess later.

Note that fc_rtt and fc_rttvar are supported on any OS that has TCP_INFO,
not just linux/freebsd/netbsd, so we continue to expose them unconditionally.
src/tcp_sample.c