MINOR: protocol: remove the redundant ->sock_domain field
authorWilly Tarreau <w@1wt.eu>
Tue, 8 Dec 2020 11:13:54 +0000 (12:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Dec 2020 11:13:54 +0000 (12:13 +0100)
commitf9ad06cb263eff8360f6ee509da68b643735329b
tree433d41ad0236f055674ffdf5a5fc1744250f5bed
parentc43fca01390c4563dfe1d31ace7f1e9b64d9750c
MINOR: protocol: remove the redundant ->sock_domain field

This field used to be needed before commit 2b5e0d8b6 ("MEDIUM: proto_udp:
replace last AF_CUST_UDP* with AF_INET*") as it was used as a protocol
entry selector. Since this commit it's always equal to the socket family's
value so it's entirely redundant. Let's remove it now to simplify the
protocol definition a little bit.
include/haproxy/protocol-t.h
src/proto_sockpair.c
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c
src/protocol.c