]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tcp_sample: bc_{dst,src} return IP not INT
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 7 Jun 2023 13:12:06 +0000 (15:12 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 3 Jul 2023 14:32:01 +0000 (16:32 +0200)
commit461fd2e29616eb27f6a66ca66311076366423527
tree38e579c741d3b4a6f3fecc460ee7b85f43eeb434
parenta9b1a4edd9a0acbae42ed8f28d9f48cae1b4ef99
BUG/MINOR: tcp_sample: bc_{dst,src} return IP not INT

bc_{dst,src} sample fetches were introduced in 7d081f0 ("MINOR:
tcp_samples: Add samples to get src/dst info of the backend connection")

However a copy-pasting error was probably made here because they both
return IP addresses (not integers) like their fc_{src,dst} or src,dst
analogs.

Hopefully, this had no functional impact because integer can be converted
to both IPV4 and IPV6 types so the compatibility checks were not affected.

Better fix this to prevent confusion in code and "haproxy -dKsmp" output.

This should be backported up to 2.4 with 7d081f0.
src/tcp_sample.c