]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: add htonl converter
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Apr 2020 07:08:32 +0000 (09:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:37 +0000 (09:39 +0200)
commit4ccc12fc410f103552e403e35a73f3611a5073a6
tree9ed78169e7e2c127702c6e1cf9f661bfd9b19736
parent5d503fcf5b3c739660eb8ce090e89e0fdf6c6f17
MINOR: sample: add htonl converter

This converter tranform a integer to its binary representation in the network
byte order. Integer are already automatically converted to binary during sample
expression evaluation. But because samples own 8-bytes integers, the conversion
produces 8 bytes. the htonl converter do the same but for 4-bytes integer.
doc/configuration.txt
src/sample.c