]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: protocol: remove family-specific fields from struct protocol
authorWilly Tarreau <w@1wt.eu>
Fri, 4 Sep 2020 06:23:14 +0000 (08:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 20:08:07 +0000 (22:08 +0200)
commit1e984b73f0b6390bf8ac35dae6dc33098bceea21
treec61d6f082733c29800b0ed8e4a0eb6416928fe7a
parentf1f660978cec83b8fcad00de3b09fb53c7ea6972
CLEANUP: protocol: remove family-specific fields from struct protocol

This removes the following fields from struct protocol that are now
retrieved from the protocol family instead: .sock_family, .sock_addrlen,
.l3_addrlen, .addrcmp, .bind, .get_src, .get_dst.

This also removes the UDP-specific udp{,6}_get_{src,dst}() functions
which were referenced but not used yet. Their goal was only to remap
the original AF_INET* addresses to AF_CUST_UDP*.

Note that .sock_domain is still there as it's used as a selector for
the protocol struct to be used.
include/haproxy/proto_udp.h
include/haproxy/protocol-t.h
src/proto_sockpair.c
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c