MINOR: connection: add conn_pr_mode_to_proto_mode() helper func
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 19 Oct 2023 14:06:03 +0000 (16:06 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 Oct 2023 09:59:27 +0000 (11:59 +0200)
commit66795bd7216fe5d38bdb42511e8126f91b7d38ab
tree24da65161d8d257f8cd0e5fb83a903a916082e60
parent29b76cae47b15b1f0fc663fc53d323a6e9aaf801
MINOR: connection: add conn_pr_mode_to_proto_mode() helper func

This function allows to safely map proxy mode to corresponding proto_mode

This will allow for easier code maintenance and prevent mixups between
proxy mode and proto mode.
include/haproxy/connection.h
src/cfgparse.c
src/stream.c