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

From: Enji Cooper (yaneurabeya) <yaneurabeya_at_gmail.com>
Date: Fri, 27 Feb 2026 03:46:09 UTC
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?
Thanks!
-Enji