]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: Add a reverse non-comment rule iterator to get last rule
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 15 Apr 2020 09:34:04 +0000 (11:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:38 +0000 (09:39 +0200)
commit95226db8e406f381fd3df1cb6950dd6fec2ac5fc
tree8933b8a8958eaae059cdf266904f1e5e3a6fdaa2
parent5eb96cbcbc5fecb9d1275ff442e579e97a7f8c2e
MINOR: checks: Add a reverse non-comment rule iterator to get last rule

the get_last_tcpcheck_rule() function iters on a rule list in the reverse order
and returns the first non comment and non action-kw rule. If no such rule is
found, NULL is returned.
src/checks.c