]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: tcp: stop exporting smp_fetch_src()
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 09:31:31 +0000 (11:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:51:36 +0000 (18:51 +0200)
commit478331dd9320541484edb3f47f3d770f6c117e7a
tree7d38517678b2ce36e8a4f1d54d0bcc38db48e19b
parentaeae66cf22527299c7187e0d498361073cf2a854
CLEANUP: tcp: stop exporting smp_fetch_src()

This is totally ugly, smp_fetch_src() is exported only so that stick_table.c
can (ab)use it in the {sc,src}_* sample fetch functions. It could be argued
that the sample could have been reconstructed there in place, but we don't
even need to duplicate the code. We'd rather simply retrieve the "src"
fetch's function from where it's used at init time and be done with it.
include/haproxy/proto_tcp.h
src/proto_tcp.c
src/stick_table.c