MINOR: sample: add new converters to hash input
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Jul 2014 18:15:37 +0000 (20:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jul 2014 19:36:15 +0000 (21:36 +0200)
commit23ec4ca1bb995e3f6fbb488e5e05da7af05565a9
treeabc43a2db9e9963f69d11988e9466894450e9f7e
parent9700e5c914161a2bf78380bd935e7353ab8a0b50
MINOR: sample: add new converters to hash input

From time to time it's useful to hash input data (scramble input, or
reduce the space needed in a stick table). This patch provides 3 simple
converters allowing use of the available hash functions to hash input
data. The output is an unsigned integer which can be passed into a header,
a log or used as an index for a stick table. One nice usage is to scramble
source IP addresses before logging when there are requirements to hide them.
doc/configuration.txt
src/sample.c