Lines Matching defs:sndlen
6591 if (ca->sndlen > 0) {
6626 ph->param_length = htons((uint16_t)(sizeof(struct sctp_paramhdr) + ca->sndlen));
6856 ca->sndlen = uio->uio_resid;
6857 ca->m = sctp_copy_out_all(uio, ca->sndlen);
6867 ca->sndlen = 0;
6869 ca->sndlen += SCTP_BUF_LEN(mat);
12475 ssize_t sndlen = 0, max_len, local_add_more;
12527 sndlen = uio->uio_resid;
12530 sndlen = SCTP_HEADER_LEN(i_pak);
12534 sndlen);
12697 ((sinfo_flags & SCTP_EOF) && (sndlen == 0))) {
12800 if (sndlen > (ssize_t)asoc->smallest_mtu) {
12821 amount = sndlen;
12828 if (sndlen > (ssize_t)SCTP_SB_LIMIT_SND(so))
12834 stcb->asoc.sb_send_resv += (uint32_t)sndlen;
12838 atomic_add_int(&stcb->asoc.sb_send_resv, sndlen);
12840 local_soresv = sndlen;
12917 if (sndlen != 0) {
12924 tot_out = sndlen;
12965 if (sndlen != 0) {
12985 if (sndlen != 0) {
13010 (sndlen > (ssize_t)SCTP_SB_LIMIT_SND(stcb->sctp_socket))) {
13033 local_add_more = sndlen;
13056 sctp_log_block(SCTP_BLOCK_LOG_INTO_BLKA, asoc, sndlen);
13096 * sndlen covers for mbuf case uio_resid covers for the non-mbuf
13099 if (sndlen == 0) {
13268 sctp_prune_prsctp(stcb, asoc, srcv, (int)sndlen);
13669 atomic_subtract_int(&stcb->asoc.sb_send_resv, sndlen);