MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_copy_one

Function sctp_copy_one

freebsd/netinet/sctp_output.c:12302–12316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12300}
12301
12302static int
12303sctp_copy_one(struct sctp_stream_queue_pending *sp,
12304 struct uio *uio,
12305 int resv_upfront)
12306{
12307 sp->data = m_uiotombuf(uio, M_WAITOK, sp->length,
12308 resv_upfront, 0);
12309 if (sp->data == NULL) {
12310 SCTP_LTRACE_ERR_RET(NULL, NULL, NULL, SCTP_FROM_SCTP_OUTPUT, ENOBUFS);
12311 return (ENOBUFS);
12312 }
12313
12314 sp->tail_mbuf = m_last(sp->data);
12315 return (0);
12316}
12317
12318static struct sctp_stream_queue_pending *
12319sctp_copy_it_in(struct sctp_tcb *stcb,

Callers 1

sctp_copy_it_inFunction · 0.85

Calls 1

m_lastFunction · 0.50

Tested by

no test coverage detected