]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcp_samples: Add samples to get src/dst info of the backend connection
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 15 Apr 2021 07:38:37 +0000 (09:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Apr 2021 06:31:05 +0000 (08:31 +0200)
commit7d081f02a43651d781a3a30a51ae19abdceb5683
tree389fd4a11e151e5e002e48745b87944a8e26b8a0
parent6f97a611c83d7135d77407f7327980994413b842
MINOR: tcp_samples: Add samples to get src/dst info of the backend connection

This patch adds 4 new sample fetches to get the source and the destination
info (ip address and port) of the backend connection :

 * bc_dst      : Returns the destination address of the backend connection
 * bc_dst_port : Returns the destination port of the backend connection
 * bc_src      : Returns the source address of the backend connection
 * bc_src_port : Returns the source port of the backend connection

The configuration manual was updated accordingly.
doc/configuration.txt
src/tcp_sample.c