MINOR: protocols: make use of the protocol type to select the protocol
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Oct 2021 15:28:55 +0000 (17:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Oct 2021 15:31:20 +0000 (17:31 +0200)
commite3b45184143a1561167ae2fd7ad41d4b0a845b58
tree199abbfd6d9dda9427a5df3661308f18521811b0
parent337edfdbc50412ac1d0d437de8a777cb009a054c
MINOR: protocols: make use of the protocol type to select the protocol

Instead of using sock_type and ctrl_type to select a protocol, let's
make use of the new protocol type. For now they always match so there
is no change. This is applied to address parsing and to socket retrieval
from older processes.
include/haproxy/protocol.h
src/cfgparse.c
src/protocol.c
src/sock.c
src/tools.c