From 83b8204f61a2377adce47202b25efd6d415237b6 Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Sun, 12 Jul 2020 14:50:12 +0000 Subject: [PATCH] (Re)activate SCTP system calls when compiling SCTP support into the kernel r363079 introduced the possibility of loading the SCTP stack as a module in addition to compiling it into the kernel. As part of this, the registration of the system calls was removed and put into the loading of the module. Therefore, the system calls are not registered anymore when compiling the SCTP into the kernel. This patch addresses that. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D25632 --- sys/netinet/sctp_syscalls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/netinet/sctp_syscalls.c b/sys/netinet/sctp_syscalls.c index 8dbbdc40af7e..48d9028818ae 100644 --- a/sys/netinet/sctp_syscalls.c +++ b/sys/netinet/sctp_syscalls.c @@ -117,6 +117,10 @@ sctp_syscalls_init(void) return (0); } +#ifdef SCTP +SYSINIT(sctp_syscalls, SI_SUB_SYSCALLS, SI_ORDER_ANY, sctp_syscalls_init, NULL); +#endif + int sctp_syscalls_uninit(void) {