]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgcond: Implement enabled condition expression
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Feb 2023 10:16:08 +0000 (11:16 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Feb 2023 10:44:55 +0000 (11:44 +0100)
commitc13f3028e8e5576b9b7dedd984fc44db01c25f90
tree144959b06b754998176f46b5df682ee762734fa6
parenta1fdad784bc734c2a01ca5980e1a662d418a2a0b
MINOR: cfgcond: Implement enabled condition expression

Implement a way to test if some options are enabled at run-time. For now,
following options may be detected:

  POLL, EPOLL, KQUEUE, EVPORTS, SPLICE, GETADDRINFO, REUSEPORT,
  FAST-FORWARD, SERVER-SSL-VERIFY-NONE

These options are those that can be disabled on the command line. This way
it is possible, from a reg-test for instance, to know if a feature is
supported or not :

  feature cmd "$HAPROXY_PROGRAM -cc '!(globa.tune & GTUNE_NO_FAST_FWD)'"
doc/configuration.txt
include/haproxy/cfgcond-t.h
src/cfgcond.c