webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions | Variables
sctp_usrreq.c File Reference
#include <netinet/sctp_os.h>
#include <netinet/sctp_pcb.h>
#include <netinet/sctp_header.h>
#include <netinet/sctp_var.h>
#include <netinet/sctp_sysctl.h>
#include <netinet/sctp_output.h>
#include <netinet/sctp_uio.h>
#include <netinet/sctp_asconf.h>
#include <netinet/sctputil.h>
#include <netinet/sctp_indata.h>
#include <netinet/sctp_timer.h>
#include <netinet/sctp_auth.h>
#include <netinet/sctp_bsd_addr.h>
#include <netinet/udp.h>

Macros

#define SCTP_FIND_STCB(inp, stcb, assoc_id)
 
#define SCTP_CHECK_AND_CAST(destp, srcp, type, size)
 

Functions

void sctp_init (void)
 
void sctp_finish (void)
 
void sctp_pathmtu_adjustment (struct sctp_tcb *stcb, uint16_t nxtsz)
 
int sctp_detach (struct socket *so)
 
int sctp_sendm (struct socket *so, int flags, struct mbuf *m, struct sockaddr *addr, struct mbuf *control, struct proc *p)
 
int sctp_disconnect (struct socket *so)
 
int sctp_shutdown (struct socket *so)
 
int sctp_listen (struct socket *so, struct proc *p)
 
int sctp_accept (struct socket *so, struct mbuf *nam)
 

Variables

const struct sctp_cc_functions sctp_cc_functions []
 
const struct sctp_ss_functions sctp_ss_functions []
 

Macro Definition Documentation

◆ SCTP_CHECK_AND_CAST

#define SCTP_CHECK_AND_CAST (   destp,
  srcp,
  type,
  size 
)
Value:
{\
if (size < sizeof(type)) { \
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL); \
error = EINVAL; \
break; \
} else { \
destp = (type *)srcp; \
} \
}
EGLStreamKHR EGLint EGLint EGLint size
Definition: eglext.h:984
#define SCTP_FROM_SCTP_USRREQ
Definition: sctp_constants.h:793
EGLenum type
Definition: eglext.h:63
#define NULL
Definition: common_types.h:41

◆ SCTP_FIND_STCB

#define SCTP_FIND_STCB (   inp,
  stcb,
  assoc_id 
)
Value:
{ \
if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) ||\
(inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) { \
SCTP_INP_RLOCK(inp); \
stcb = LIST_FIRST(&inp->sctp_asoc_list); \
if (stcb) { \
SCTP_TCB_LOCK(stcb); \
} \
SCTP_INP_RUNLOCK(inp); \
} else if (assoc_id > SCTP_ALL_ASSOC) { \
stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); \
if (stcb == NULL) { \
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, ENOENT); \
error = ENOENT; \
break; \
} \
} else { \
stcb = NULL; \
} \
}
#define LIST_FIRST(head)
Definition: user_queue.h:387
#define SCTP_FROM_SCTP_USRREQ
Definition: sctp_constants.h:793
#define SCTP_PCB_FLAGS_IN_TCPPOOL
Definition: sctp.h:537
#define SCTP_PCB_FLAGS_TCPTYPE
Definition: sctp.h:527
#define NULL
Definition: common_types.h:41
struct sctp_tcb * sctp_findassociation_ep_asocid(struct sctp_inpcb *inp, sctp_assoc_t asoc_id, int want_lock)
Definition: sctp_pcb.c:1877
#define SCTP_ALL_ASSOC
Definition: sctp_uio.h:69

Function Documentation

◆ sctp_accept()

int sctp_accept ( struct socket so,
struct mbuf nam 
)

◆ sctp_detach()

int sctp_detach ( struct socket so)

◆ sctp_disconnect()

int sctp_disconnect ( struct socket so)

◆ sctp_finish()

void sctp_finish ( void  )

◆ sctp_init()

◆ sctp_listen()

int sctp_listen ( struct socket so,
struct proc p 
)

◆ sctp_pathmtu_adjustment()

void sctp_pathmtu_adjustment ( struct sctp_tcb stcb,
uint16_t  nxtsz 
)

◆ sctp_sendm()

int sctp_sendm ( struct socket so,
int  flags,
struct mbuf m,
struct sockaddr *  addr,
struct mbuf control,
struct proc p 
)

◆ sctp_shutdown()

int sctp_shutdown ( struct socket so)

Variable Documentation

◆ sctp_cc_functions

◆ sctp_ss_functions