Re: git: 454212b9718b - main - sctp: fix so_proto when peeling off a socket
Date: Fri, 27 Feb 2026 07:11:39 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? Correct. Let me fix that. Thanks for reporting! Best regards Michael > Thanks! > -Enji