]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stktable: add sc[0-2]_key fetches
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 30 Dec 2024 18:26:36 +0000 (19:26 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 9 Jan 2025 09:57:01 +0000 (10:57 +0100)
commit24042df94e27485550d83770138d99d3d07ae6a4
tree8d5952ef321f3db401b895e90a5bf74acd821842
parent7423310d5ddc1aa2d8399f33102396165aa74fda
MINOR: stktable: add sc[0-2]_key fetches

As discussed in GH #1750, we were lacking a sample fetch to be able to
retrieve the key from the currently tracked counter entry. To do so,
sc_key fetch can now be used. It returns a sample with the correct type
(table key type) corresponding to the tracked counter entry (from previous
track-sc rules).

If no entry is currently tracked, it returns nothing.

It can be used using the standard form "sc_key(<sc_number>)" or the legacy
form: "sc0_key", "sc1_key", "sc2_key"

Documentation was updated.
doc/configuration.txt
src/stick_table.c