]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: List the filter classes in haproxy -vv
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Oct 2026 09:09:39 +0000 (11:09 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:36 +0000 (16:17 +0200)
commitbc870c22f672955161e81843a2e250460ff7f2ce
treece3f7611d40f6ac15f95d46c0d17d8889916f98a
parentaef53fcb9a17b08bfb7b353df4406f251ce56330
MINOR: filters: List the filter classes in haproxy -vv

The "Available filters" section dumped the keywords registered for the
legacy "filter" directive, one per line with the scope of the keyword
list they come from. New filters will support the new declaration mode
only and will not register such keywords, so the list would be
incomplete. And the printed names are the legacy keyword names, which
are not the filter class names usable with "filter-config" anyway.

Dump the registered filter classes instead, as a comma-separated list,
in their global order, so both declaration modes are covered. Rename
list_filters() to list_filter_classes() and change the header of the
dump accordingly. The legacy keyword list remains reported by
flt_dump_kws(), where a keyword list is what is expected: the "filter"
keyword parsing errors and the "haproxy -dM flt" diagnostics.

Update the "haproxy -vv" example in the internal API documentation and
the sample debug outputs in the regression testing documentation.
doc/internals/api/filters.txt
doc/regression-testing.txt
include/haproxy/filters.h
src/filters.c
src/haproxy.c