On Mon, Aug 26, 2024 at 11:50:26AM +0200, Aperence wrote: > Use the protocol configured for a connection when creating the socket, > instead of always using 0. > > This change is needed to allow new protocol to be used when creating > the sockets, such as MPTCP. Note however that this patch won't change > anything for now, as the only value that proto->sock_prot could hold > is IPPROTO_TCP, which has the same behavior as 0 when passed to socket.
To be precise, it's the only *other* value that can be IPPROTO_TCP, because for unix sockets and socket pairs we're passing zero there, and sock_prot is properly zero for them ;-) I'll adjust that in the commit message myself if I take the series as-is. Willy