Re: git: 454212b9718b - main - sctp: fix so_proto when peeling off a socket

From: Gleb Smirnoff <glebius_at_freebsd.org>
Date: Sat, 28 Feb 2026 01:44:45 UTC
On Fri, Feb 27, 2026 at 08:11:39AM +0100, Michael Tuexen wrote:
M> >> - so = sopeeloff(head);
M> >> + so = sopeeloff(head, &sctp_stream_protosw);
M> > 
M> > This part of the change broke LINT-NOINET because sctp_stream_protosw is only defined in the INET case. I didn’t dig into the SCTP syscalls too far, but I think that the right protocol needs to be picked per the address family, right?

btw, I tried to move the function to sctp_syscalls.c and this required exposing
soattach() and soalloc() outside.  After weighting in and out decided to leave
it the way it is.

-- 
Gleb Smirnoff