]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: Add helpers to iterate and find filter configurations
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 2 Oct 2026 16:05:29 +0000 (18:05 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:36 +0000 (16:17 +0200)
commitbf32f28b2cce96cc45a6f8b9b96821115eccb9df
tree6cf4eb893471041e08b5f2924d59f945141e1c79
parentd6bb27b935b705381cab0fa9796c36b7c4ea63df
MINOR: filters: Add helpers to iterate and find filter configurations

Add flt_foreach_conf() to walk the filter configurations of a proxy in
the evaluation order of a given side, and flt_find_conf() to look up the
first configuration matching an id and an optional callback.

Both helpers select the legacy filter configurations (px->filter_configs)
when the proxy is in legacy mode, and the finalized filter instances
otherwise, following the global, request or response order. They will let
the filter callbacks and the action parsers work in both modes without
duplicating the list selection.

The helpers are not used yet.
include/haproxy/filters.h
src/filters.c