]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: net_helper: extend the ip.fp output with an option presence mask
authorWilly Tarreau <w@1wt.eu>
Mon, 9 Feb 2026 08:06:38 +0000 (09:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Feb 2026 08:18:04 +0000 (09:18 +0100)
commitecffaa6d5aa82542118e9e4eafec4c4a7bfd80ef
tree024d300fa7e3165eb7dee1ff7698c4e1b6fa78ae
parenta1db464c3e3db8dc1d378c10bd627b8a4d09ab7a
MINOR: net_helper: extend the ip.fp output with an option presence mask

Emeric suggested that it's sometimes convenient to instantly know if a
client has advertised support for window scaling or timestamps for
example. While the info is present in the TCP options output, it's hard
to extract since it respects the options order.

So here we're extending the 56-bit fingerprint with 8 extra bits that
indicate the presence of options 2..8, and any option above 9 for the
last bit. In practice this is sufficient since higher options are not
commonly used. Also TCP option 5 is normally not sent on the SYN (SACK,
only SACK_perm is sent), and echo options 6 & 7 are no longer used
(replaced with timestamps). These fields might be repurposed in the
future if some more meaningful options are to be mapped (e.g. MPTCP,
TFO cookie, auth).
doc/configuration.txt
src/net_helper.c