]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcp: add new bind option "tcp-ss" to instruct the kernel to save the SYN
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Dec 2025 10:35:09 +0000 (11:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Dec 2025 10:35:09 +0000 (11:35 +0100)
commit44c67a08dd769291d8107f4522cf95b7dd314c22
tree0bf70f4116e70222f1d5ec6bbd8045d422854b28
parent1fdccbe8da294d161f0f898bc345873fe8229ea7
MINOR: tcp: add new bind option "tcp-ss" to instruct the kernel to save the SYN

This option enables TCP_SAVE_SYN on the listening socket, which will
cause the kernel to try to save a copy of the SYN packet header (L2,
IP and TCP are supported). This can permit to check the source MAC
address of a client, or find certain TCP options such as a source
address encapsulated using RFC7974. It could also be used as an
alternate approach to retrieving the source and destination addresses
and ports. For now setting the option is enabled, but sample fetch
functions and converters will be needed to extract info.
doc/configuration.txt
include/haproxy/listener-t.h
src/cfgparse-tcp.c
src/proto_tcp.c