]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: protocol: add a new proto_fam structure for protocol families
authorWilly Tarreau <w@1wt.eu>
Fri, 4 Sep 2020 06:07:11 +0000 (08:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 20:08:07 +0000 (22:08 +0200)
commitb0254cb36111c2084fedd21155161a2c96a14037
tree9e8ad51a0d63a85e891220a25fec17981bbc58c4
parentad33acf83866cfdf6fb4db330a3c8abc85050cb5
MINOR: protocol: add a new proto_fam structure for protocol families

We need to specially handle protocol families which regroup common
functions used for a given address family. These functions include
bind(), addrcmp(), get_src() and get_dst() for now. Some fields are
also added about the address family, socket domain (protocol family
passed to the socket() syscall), and address length.

These protocol families are referenced from the protocols but not yet
used.
include/haproxy/proto_sockpair.h
include/haproxy/protocol-t.h
include/haproxy/sock_inet.h
include/haproxy/sock_unix.h
src/proto_sockpair.c
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c
src/sock_inet.c
src/sock_unix.c