]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: add filter name to flt_conf struct
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 31 Mar 2026 12:44:34 +0000 (14:44 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 3 Apr 2026 10:10:20 +0000 (12:10 +0200)
commit629a5ae5310b26f6e47f4614f924bccce2ffe85f
tree29cd0c8f3d862a056038eacee4d187333f28ab60
parent882176a60216239be80fd4dc6037e30023ab1653
MINOR: filters: add filter name to flt_conf struct

flt_conf struct stores the filter id, which is used internally to check
match the filter against static pointer identifier, and also used as
descriptive text to describe the filter. But the id is not consistent
with the public name as used in the configuration (for instance when
selecting filter through the 'filter' directive).

What we do in this patch is that we add flt_conf->name member, which
stores the real filter name as seen in the configuration. This will
allow to select filters by their name from other directives in the
configuration.
include/haproxy/filters-t.h
src/filters.c
src/flt_http_comp.c