(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
This commit is contained in:
Michael Tuexen 2020-07-12 14:50:12 +00:00
parent 4c7ba83f9d
commit 83b8204f61
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363129

View File

@ -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)
{