Searched refs:SCTP_BUF_LEN (Results 1 – 15 of 15) sorted by relevance
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/ |
D | sctp_var.h | 203 SCTP_SAVE_ATOMIC_DECREMENT(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \ 206 SCTP_SAVE_ATOMIC_DECREMENT(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \ 211 atomic_subtract_int(&(sb)->sb_ctl,SCTP_BUF_LEN((m))); \ 215 atomic_add_int(&(sb)->sb_cc,SCTP_BUF_LEN((m))); \ 218 atomic_add_int(&(stcb)->asoc.sb_cc,SCTP_BUF_LEN((m))); \ 223 atomic_add_int(&(sb)->sb_ctl,SCTP_BUF_LEN((m))); \ 252 if ((sb)->sb_cc >= (uint32_t)SCTP_BUF_LEN((m))) { \ 253 atomic_subtract_int(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \ 258 if ((stcb)->asoc.sb_cc >= (uint32_t)SCTP_BUF_LEN((m))) { \ 259 atomic_subtract_int(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \ [all …]
|
D | sctp_crc32.c | 762 while ((at != NULL) && (offset > (uint32_t) SCTP_BUF_LEN(at))) { in sctp_calculate_cksum() 763 offset -= SCTP_BUF_LEN(at); /* update remaining offset in sctp_calculate_cksum() 768 if ((SCTP_BUF_LEN(at) - offset) > 0) { in sctp_calculate_cksum() 771 (unsigned int)(SCTP_BUF_LEN(at) - offset)); in sctp_calculate_cksum() 775 if (offset < (uint32_t) SCTP_BUF_LEN(at)) in sctp_calculate_cksum() 778 offset -= SCTP_BUF_LEN(at); in sctp_calculate_cksum()
|
D | sctputil.c | 263 sctp_clog.x.mb.size = (uint16_t)(SCTP_BUF_LEN(m)); in sctp_log_mb() 2444 tlen += SCTP_BUF_LEN(at); in sctp_calculate_len() 2618 if (off < SCTP_BUF_LEN(m)) in sctp_m_getptr() 2620 off -= SCTP_BUF_LEN(m); in sctp_m_getptr() 2627 if ((SCTP_BUF_LEN(m) - off) >= len) { in sctp_m_getptr() 2632 count = min(SCTP_BUF_LEN(m) - off, len); in sctp_m_getptr() 2681 SCTP_BUF_LEN(m_last) = 0; in sctp_add_pad_tombuf() 2685 dp = mtod(m_last, caddr_t) + SCTP_BUF_LEN(m_last); in sctp_add_pad_tombuf() 2686 SCTP_BUF_LEN(m_last) += padlen; in sctp_add_pad_tombuf() 2781 SCTP_BUF_LEN(m_notify) = sac->sac_length; in sctp_notify_assoc_change() [all …]
|
D | sctp_auth.c | 1053 while ((m_tmp != NULL) && (m_offset >= (uint32_t) SCTP_BUF_LEN(m_tmp))) { 1054 m_offset -= SCTP_BUF_LEN(m_tmp); 1061 SCTP_BUF_LEN(m_tmp) - (trailer+m_offset)); 1064 SCTP_BUF_LEN(m_tmp) - m_offset); 1626 while ((m_tmp != NULL) && (m_offset >= (uint32_t) SCTP_BUF_LEN(m_tmp))) { 1627 m_offset -= SCTP_BUF_LEN(m_tmp); 1633 if (size > (uint32_t) SCTP_BUF_LEN(m_tmp)) { 1634 bzero(data, SCTP_BUF_LEN(m_tmp)); 1635 size -= SCTP_BUF_LEN(m_tmp); 1703 SCTP_BUF_LEN(m_err) = sizeof(*err); [all …]
|
D | sctp_asconf.c | 98 SCTP_BUF_LEN(m_reply) = aph->ph.param_length; in sctp_asconf_success_response() 143 SCTP_BUF_LEN(m_reply) = aph->ph.param_length; in sctp_asconf_error_response() 675 SCTP_BUF_LEN(m_ack) = sizeof(struct sctp_asconf_ack_chunk); in sctp_handle_asconf() 780 SCTP_BUF_LEN(m_result) = SCTP_SIZE32(SCTP_BUF_LEN(m_result)); in sctp_handle_asconf() 781 ack_cp->ch.chunk_length += SCTP_BUF_LEN(m_result); in sctp_handle_asconf() 816 ack->len += SCTP_BUF_LEN(n); in sctp_handle_asconf() 2628 SCTP_BUF_LEN(m_asconf_chk) = sizeof(struct sctp_asconf_chunk); in sctp_compose_asconf() 2629 SCTP_BUF_LEN(m_asconf) = 0; in sctp_compose_asconf() 2649 if ((SCTP_BUF_LEN(m_asconf) + p_length > stcb->asoc.smallest_mtu) || in sctp_compose_asconf() 2650 (SCTP_BUF_LEN(m_asconf) + p_length > MCLBYTES)) { in sctp_compose_asconf() [all …]
|
D | sctp_output.c | 2000 parmh = (struct sctp_paramhdr *)(SCTP_BUF_AT(m, SCTP_BUF_LEN(m))); in sctp_add_addr_to_mbuf() 2029 SCTP_BUF_LEN(mret) += plen; in sctp_add_addr_to_mbuf() 2049 SCTP_BUF_LEN(mret) += plen; in sctp_add_addr_to_mbuf() 2183 SCTP_BUF_LEN(m_at) += *padding_len; in sctp_add_addresses_to_i_ia() 2261 SCTP_BUF_LEN(m_at) += *padding_len; in sctp_add_addresses_to_i_ia() 3568 tlen = SCTP_BUF_LEN(control); 3672 tlen = SCTP_BUF_LEN(control); 3847 tlen = SCTP_BUF_LEN(control); 3975 SCTP_BUF_LEN(mret) = sizeof(struct sctp_state_cookie) + 3987 cookie_sz += SCTP_BUF_LEN(m_at); [all …]
|
D | sctp_indata.c | 256 SCTP_BUF_LEN(ret) = 0; in sctp_build_ctl_nchunk() 287 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_rcvinfo)); in sctp_build_ctl_nchunk() 313 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_nxtinfo)); in sctp_build_ctl_nchunk() 322 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_extrcvinfo)); in sctp_build_ctl_nchunk() 327 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); in sctp_build_ctl_nchunk() 1436 SCTP_BUF_LEN(mb) = (sizeof(struct sctp_paramhdr) * 2); in sctp_process_a_data_chunk() 1528 l_len = SCTP_BUF_LEN(dmbuf); in sctp_process_a_data_chunk() 1537 l_len += SCTP_BUF_LEN(lat); in sctp_process_a_data_chunk() 2354 if (SCTP_BUF_LEN(m) < (long)MLEN && SCTP_BUF_NEXT(m) == NULL) { in sctp_process_data() 2356 m = sctp_get_mbuf_for_msg(SCTP_BUF_LEN(m), 0, M_NOWAIT, 1, MT_DATA); in sctp_process_data() [all …]
|
D | sctp_bsd_addr.c | 844 SCTP_BUF_LEN(m) = 0; 945 SCTP_BUF_LEN(m) = 0;
|
D | sctp_input.c | 567 SCTP_BUF_LEN(op_err) = in sctp_process_init_ack() 2637 SCTP_BUF_LEN(op_err) = sizeof(struct sctp_stale_cookie_msg); 4232 SCTP_BUF_LEN(chk->data) = SCTP_SIZE32(chk->send_size); 5635 SCTP_BUF_LEN(mm) = sizeof(*phd); 6156 SCTP_PRINTF("%p: m_len = %ld\n", (void *)m, SCTP_BUF_LEN(m)); 6282 if (SCTP_BUF_LEN(m) < offset) { 6416 if (SCTP_BUF_LEN(m) < offset) {
|
D | sctp_os_userspace.h | 821 #define SCTP_BUF_LEN(m) (m->m_len) macro
|
D | sctp_usrreq.c | 1213 SCTP_BUF_LEN(err) = sizeof(struct sctp_paramhdr); 1215 ph->param_length = htons(SCTP_BUF_LEN(err)); 7988 SCTP_BUF_LEN(nam) = sizeof(*sin); 8032 SCTP_BUF_LEN(nam) = sizeof(*sin6); 8145 SCTP_BUF_LEN(nam) = sizeof(*sin); 8269 SCTP_BUF_LEN(nam) = sizeof(*sin);
|
D | sctp_pcb.c | 6626 if (SCTP_BUF_LEN(m) < offset) {
|
/external/chromium_org/third_party/usrsctp/usrsctplib/ |
D | user_recv_thread.c | 367 SCTP_BUF_LEN(recvmbuf[0]) = n; in recv_function_raw() 371 SCTP_BUF_LEN(recvmbuf[0]) = iovlen; in recv_function_raw() 377 SCTP_BUF_LEN(recvmbuf[i]->m_next) = min(ncounter, iovlen); in recv_function_raw() 562 SCTP_BUF_LEN(recvmbuf6[0]) = n; in recv_function_raw6() 566 SCTP_BUF_LEN(recvmbuf6[0]) = iovlen; in recv_function_raw6() 572 SCTP_BUF_LEN(recvmbuf6[i]->m_next) = min(ncounter, iovlen); in recv_function_raw6() 752 SCTP_BUF_LEN(udprecvmbuf[0]) = n; in recv_function_udp() 756 SCTP_BUF_LEN(udprecvmbuf[0]) = iovlen; in recv_function_udp() 762 SCTP_BUF_LEN(udprecvmbuf[i]->m_next) = min(ncounter, iovlen); in recv_function_udp() 960 SCTP_BUF_LEN(udprecvmbuf6[0]) = n; in recv_function_udp6() [all …]
|
D | user_socket.c | 2795 if (SCTP_BUF_LEN(m) < len) { 2806 if (SCTP_BUF_LEN(m) < len) { 2853 send_iovec[iovcnt].iov_len = SCTP_BUF_LEN(m); 2857 send_iovec[iovcnt].len = SCTP_BUF_LEN(m); 2951 if (SCTP_BUF_LEN(m) < len) { 2963 if (SCTP_BUF_LEN(m) < len) { 3012 send_iovec[iovcnt].iov_len = SCTP_BUF_LEN(m); 3016 send_iovec[iovcnt].len = SCTP_BUF_LEN(m); 3215 if (SCTP_BUF_LEN(m) < (int)(sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr))) {
|
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet6/ |
D | sctp6_usrreq.c | 1362 SCTP_BUF_LEN(nam) = sizeof(*sin6); 1495 SCTP_BUF_LEN(nam) = sizeof(*sin6);
|