FreeBSD kernel IPv4 code
sctp_peeloff.c File Reference
#include <sys/cdefs.h>
#include <netinet/sctp_os.h>
#include <netinet/sctp_pcb.h>
#include <netinet/sctputil.h>
#include <netinet/sctp_var.h>
#include <netinet/sctp_sysctl.h>
#include <netinet/sctp.h>
#include <netinet/sctp_uio.h>
#include <netinet/sctp_peeloff.h>
#include <netinet/sctp_auth.h>
Include dependency graph for sctp_peeloff.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
int sctp_can_peel_off (struct socket *head, sctp_assoc_t assoc_id)
 
int sctp_do_peeloff (struct socket *head, struct socket *so, sctp_assoc_t assoc_id)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ sctp_can_peel_off()

int sctp_can_peel_off ( struct socket *  head,
sctp_assoc_t  assoc_id 
)

Definition at line 51 of file sctp_peeloff.c.

References sctp_inpcb::inp, sctp_findassociation_ep_asocid(), SCTP_FROM_SCTP_PEELOFF, SCTP_GET_STATE, SCTP_LTRACE_ERR_RET, SCTP_PCB_FLAGS_IN_TCPPOOL, SCTP_PCB_FLAGS_TCPTYPE, SCTP_STATE_EMPTY, SCTP_STATE_INUSE, SCTP_TCB_UNLOCK, and state.

Referenced by sys_sctp_peeloff().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sctp_do_peeloff()