]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: sock: use protocol when creating socket
authorAperence <anthony.doeraene.dev@gmail.com>
Mon, 26 Aug 2024 09:50:26 +0000 (11:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2024 16:53:49 +0000 (18:53 +0200)
commit2f171fe36a819bc9a1042291bca15bda650c23ff
treece655cf07008d42ca87cd3cf995f7544f9714124
parent38618822e1080d0de1d2622cea54e3cecc44c69a
MEDIUM: sock: use protocol when creating socket

Use the protocol configured for a connection when creating the socket,
instead of always using 0.

This change is needed to allow new protocol to be used when creating
the sockets, such as MPTCP. Note however that this patch won't change
anything for now, as the only other value that proto->sock_prot could
hold is IPPROTO_TCP, which has the same behavior as 0 when passed to
socket.
src/sock.c