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

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Fri, 27 Feb 2026 07:57:48 UTC
> On 27. Feb 2026, at 04:46, Enji Cooper (yaneurabeya) <yaneurabeya@gmail.com> wrote:
> 
> Hi Michael!
> 
>> On Feb 25, 2026, at 5:00 AM, Michael Tuexen <tuexen@FreeBSD.org> wrote:
>> 
>> The branch main has been updated by tuexen:
>> 
>> URL: https://cgit.FreeBSD.org/src/commit/?id=454212b9718b55b43781f81bef252658e20e0fd3
> 
> …
> 
>> @@ -171,7 +173,7 @@ sys_sctp_peeloff(struct thread *td, struct sctp_peeloff_args *uap)
>> td->td_retval[0] = fd;
>> 
>> CURVNET_SET(head->so_vnet);
>> - so = sopeeloff(head);
>> + so = sopeeloff(head, &sctp_stream_protosw);
> 
> 
> 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?
Fixed in
https://cgit.FreeBSD.org/src/commit/?id=6bd97e9e01ff159eef49b2521fdbe67d5db10d95 <https://cgit.freebsd.org/src/commit/?id=6bd97e9e01ff159eef49b2521fdbe67d5db10d95>

Thanks again for reporting and sorry for breaking the build.

Best regards
Michael
> Thanks!
> -Enji