WIP: try to match older MPTCP sockets on reload

This commit is contained in:
Willy Tarreau 2021-10-27 18:35:51 +02:00
parent 59e121a9e3
commit 605017d88b
1 changed files with 2 additions and 0 deletions

View File

@ -478,6 +478,8 @@ int sock_get_old_sockets(const char *unixsocket)
socklen = sizeof(val);
if (getsockopt(fd, SOL_SOCKET, SO_TYPE, &val, &socklen) == 0 && val == SOCK_DGRAM)
xfer_sock->options |= SOCK_XFER_OPT_DGRAM;
else if (getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, &val, &socklen) == 0 && val == IPPROTO_MPTCP)
xfer_sock->options |= SOCK_XFER_OPT_MPSTRM;
#if defined(IPV6_V6ONLY)
/* keep only the v6only flag depending on what's currently