MINOR: sample: add missing ARGC_ entries
authorWilly Tarreau <w@1wt.eu>
Thu, 2 Sep 2021 17:43:20 +0000 (19:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Nov 2021 15:21:32 +0000 (16:21 +0100)
commita281a54495dfec2cc2e10f52ec1f5d0f8a500cb4
tree74441ef2604e61bd7ea13b09f46ad326c8d625b5
parent10354a4faa74053ac7229fec2f823191bd02132f
MINOR: sample: add missing ARGC_ entries

For a long time we couldn't have arguments in expressions used in
tcp-request, tcp-response etc rules. But now due to the variables
it's possible, and their context in case of failure to resolve an
argument (e.g. backend name not found) is not properly reported
because there is no arg context values in ARGC_* to report them.

Let's add a number of missing ones for tcp-request {connection,
session,content}, tcp-response content, tcp-check, the config
parser (for "set-var" in the global section) and the CLI parser
(for "set-var" on the CLI).

(cherry picked from commit 57467b83565b9c3e112053c92ede66113809d458)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit d9b331c35976a3351fbe1e12099a0fd34da759e3)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/arg-t.h
src/sample.c