]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcp_sample: implement the fc_saved_syn sample fetch function master
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Dec 2025 17:37:11 +0000 (18:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Dec 2025 17:39:37 +0000 (18:39 +0100)
commit6fb521d2f63b8e5854e5bfbb10a7520614219be2
treef1d64dc5835610a4c2466926e915ba1e6cfb8b62
parent52d60bf9eef3147d9c8a15ebac63d334c5a32dbf
MINOR: tcp_sample: implement the fc_saved_syn sample fetch function

This function retrieves the copy of a SYN packet that the system has
kept for us when bind option "tcp-ss" was set to 1 or above. It's
recommended to copy it to a local variable because it will be freed
after being read. It allows to inspect all parts of an incoming SYN
packet, provided that it was preserved (e.g. not possible with SYN
cookies). The doc provides examples of how to use it.
doc/configuration.txt
src/tcp_sample.c