| 12300 | } |
| 12301 | |
| 12302 | static int |
| 12303 | sctp_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 | |
| 12318 | static struct sctp_stream_queue_pending * |
| 12319 | sctp_copy_it_in(struct sctp_tcb *stcb, |
no test coverage detected