MINOR: sock: distinguish dgram from stream types when retrieving old sockets
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 17:20:23 +0000 (19:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 17:26:39 +0000 (19:26 +0200)
commit9dbb6c43ce655e018da2c7f78a6cfb7f42d95c1c
tree5791fcb3afe3c116ec84d5cd4b17f80d257a0940
parenta2c17877b33aa85d49b41d555736a75cdf025a72
MINOR: sock: distinguish dgram from stream types when retrieving old sockets

For now we still don't retrieve dgram sockets, but the code must be able
to distinguish them before we switch to receivers. This adds a new flag
to the xfer_sock_list indicating that a socket is of type SOCK_DGRAM. The
way to set the flag for now is by looking at the dummy address family which
equals AF_CUST_UDP{4,6} in this case (given that other dgram sockets are not
yet supported).
include/haproxy/sock-t.h
src/sock.c