]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-listen: move "source" "usesrc" and "interface" to their own parser
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 09:20:49 +0000 (11:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
commitd06683691f1e240101517014783df32bdd56149b
treeaa9c844037ec02a216186278f4a579b32d563902
parent3a6686683b8f96cd322158a7447be94ae7bf8ce3
CLEANUP: cfgparse-listen: move "source" "usesrc" and "interface" to their own parser

The keywords are now registered in cfg_kws and parsed by
proxy_parse_source(), making them discoverable via "-dKcfg". The loop
was slightly reorganized. We cannot really use the BUG_ON() trap here
for unregistered keywords due to the loop that tries to consume as many
sub-keywords as possible (since "usesrc" and "interface" are in fact
options of "source" parsed as if they were first-level ones).
src/cfgparse-listen.c