]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r272823:
authordchagin <dchagin@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 15 Jul 2017 16:55:02 +0000 (16:55 +0000)
committerdchagin <dchagin@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 15 Jul 2017 16:55:02 +0000 (16:55 +0000)
commit71c0151db67d641fa66628ca891ad5b17c5591dd
tree4ea916bf74df7c7ca10f4ce2ba2460aa2c6969b7
parent45b2550d2c29a858ca9e77ef6eeca5abd3b91d98
MFC r272823:

Move the SCTP syscalls to netinet with the rest of the SCTP code.  The
syscalls themselves are tightly coupled with the network stack and
therefore should not be in the generic socket code.

The following four syscalls have been marked as NOSTD so they can be
dynamically registered in sctp_syscalls_init() function:
  sys_sctp_peeloff
  sys_sctp_generic_sendmsg
  sys_sctp_generic_sendmsg_iov
  sys_sctp_generic_recvmsg

The syscalls are also set up to be dynamically registered when COMPAT32
option is configured.

As a side effect of moving the SCTP syscalls, getsock_cap needs to be
made available outside of the uipc_syscalls.c source file.  A proper
prototype has been added to the sys/socketvar.h header file.

API tests from the SCTP reference implementation have been run to ensure
compatibility. (http://code.google.com/p/sctp-refimpl/source/checkout)

git-svn-id: svn://svn.freebsd.org/base/stable/10@321017 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/compat/freebsd32/syscalls.master
sys/conf/files
sys/kern/syscalls.master
sys/kern/uipc_syscalls.c
sys/netinet/sctp_syscalls.c [new file with mode: 0644]
sys/sys/socketvar.h