FreeBSD kernel IPv4 code
sctp_syscalls.c File Reference
#include <sys/cdefs.h>
#include "opt_capsicum.h"
#include "opt_sctp.h"
#include "opt_ktrace.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/capsicum.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/sysproto.h>
#include <sys/malloc.h>
#include <sys/filedesc.h>
#include <sys/event.h>
#include <sys/proc.h>
#include <sys/fcntl.h>
#include <sys/file.h>
#include <sys/filio.h>
#include <sys/jail.h>
#include <sys/mount.h>
#include <sys/mbuf.h>
#include <sys/protosw.h>
#include <sys/sf_buf.h>
#include <sys/sysent.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/signalvar.h>
#include <sys/syscall.h>
#include <sys/syscallsubr.h>
#include <sys/sysctl.h>
#include <sys/uio.h>
#include <sys/vnode.h>
#include <net/vnet.h>
#include <security/audit/audit.h>
#include <security/mac/mac_framework.h>
#include <netinet/sctp.h>
#include <netinet/sctp_os_bsd.h>
#include <netinet/sctp_peeloff.h>
Include dependency graph for sctp_syscalls.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
int sctp_syscalls_init (void)
 
int sctp_syscalls_uninit (void)
 
int sys_sctp_peeloff (struct thread *td, struct sctp_peeloff_args *uap)
 
int sys_sctp_generic_sendmsg (struct thread *td, struct sctp_generic_sendmsg_args *uap)
 
int sys_sctp_generic_sendmsg_iov (struct thread *td, struct sctp_generic_sendmsg_iov_args *uap)
 
int sys_sctp_generic_recvmsg (struct thread *td, struct sctp_generic_recvmsg_args *uap)
 

Variables

static struct syscall_helper_data sctp_syscalls []
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ sctp_syscalls_init()

int sctp_syscalls_init ( void  )

Definition at line 103 of file sctp_syscalls.c.

References sctp_syscalls.

Referenced by sctp_module_load().

Here is the caller graph for this function:

◆ sctp_syscalls_uninit()

int sctp_syscalls_uninit ( void  )

Definition at line 123 of file sctp_syscalls.c.

References sctp_syscalls.

Referenced by sctp_module_unload().

Here is the caller graph for this function:

◆ sys_sctp_generic_recvmsg()

int sys_sctp_generic_recvmsg ( struct thread *  td,
struct sctp_generic_recvmsg_args *  uap 
)

Definition at line 448 of file sctp_syscalls.c.

References IPPROTO_SCTP, and sctp_sorecvmsg().

Here is the call graph for this function:

◆ sys_sctp_generic_sendmsg()

int sys_sctp_generic_sendmsg ( struct thread *  td,
struct sctp_generic_sendmsg_args *  uap 
)

Definition at line 213 of file sctp_syscalls.c.

References IPPROTO_SCTP, and sctp_lower_sosend().

Here is the call graph for this function:

◆ sys_sctp_generic_sendmsg_iov()

int sys_sctp_generic_sendmsg_iov ( struct thread *  td,
struct sctp_generic_sendmsg_iov_args *  uap 
)

Definition at line 322 of file sctp_syscalls.c.

References IPPROTO_SCTP, and sctp_lower_sosend().

Here is the call graph for this function:

◆ sys_sctp_peeloff()

int sys_sctp_peeloff ( struct thread *  td,
struct sctp_peeloff_args *  uap 
)

Definition at line 142 of file sctp_syscalls.c.

References IPPROTO_SCTP, sctp_can_peel_off(), and sctp_do_peeloff().

Here is the call graph for this function:

Variable Documentation

◆ sctp_syscalls

struct syscall_helper_data sctp_syscalls[]
static
Initial value:
= {
SYSCALL_INIT_HELPER_F(sctp_peeloff, SYF_CAPENABLED),
SYSCALL_INIT_HELPER_F(sctp_generic_sendmsg, SYF_CAPENABLED),
SYSCALL_INIT_HELPER_F(sctp_generic_sendmsg_iov, SYF_CAPENABLED),
SYSCALL_INIT_HELPER_F(sctp_generic_recvmsg, SYF_CAPENABLED),
SYSCALL_INIT_LAST
}
int sctp_peeloff(struct socket *, struct socket *, int, caddr_t, int *)

Definition at line 84 of file sctp_syscalls.c.

Referenced by sctp_syscalls_init(), and sctp_syscalls_uninit().