]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: make pr_mode enum bitfield compatible
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 5 Mar 2025 15:53:56 +0000 (16:53 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 6 Mar 2025 08:30:11 +0000 (09:30 +0100)
commitd9aa1991006a6d7348e24af0ea781337d5b1c722
tree2b505c64e6fe170cf1f4acb62d7ed1008c006be7
parentc7abe7778e3a89f914dfecbff6eb8f6c19b9d17f
MINOR: proxy: make pr_mode enum bitfield compatible

Current pr_mode enum is a regular enum because a proxy only supports one
mode at a time. However it can be handy for a function to be given a
list of compatible modes for a proxy, and we can't do that using a
bitfield because pr_mode is not bitfield compatible (values share
the same bits).

In this patch we manually define pr_mode values so that they are all
using separate bits and allows a function to take a bitfield of
compatible modes as parameter.
include/haproxy/proxy-t.h