MINOR: protocols: replace protocol_by_family() with protocol_lookup()
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Oct 2021 15:41:07 +0000 (17:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Oct 2021 15:41:07 +0000 (17:41 +0200)
commit14e7f29e8655fa1ae2f9d409a135cbc07abb75da
tree51f290773fab69e9681d338ab66881027231313c
parente3b45184143a1561167ae2fd7ad41d4b0a845b58
MINOR: protocols: replace protocol_by_family() with protocol_lookup()

At a few places we were still using protocol_by_family() instead of
the richer protocol_lookup(). The former is limited as it enforces
SOCK_STREAM and a stream protocol at the control layer. At least with
protocol_lookup() we don't have this limitationn. The values were still
set for now but later we can imagine making them configurable on the
fly.
include/haproxy/protocol.h
src/backend.c
src/cfgparse.c
src/resolvers.c
src/server.c
src/tcpcheck.c