Searched refs:SCTP_BUF_LEN (Results 1 – 14 of 14) sorted by relevance
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/ |
D | sctp_var.h | 208 SCTP_SAVE_ATOMIC_DECREMENT(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \ 211 SCTP_SAVE_ATOMIC_DECREMENT(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \ 216 atomic_subtract_int(&(sb)->sb_ctl,SCTP_BUF_LEN((m))); \ 220 atomic_add_int(&(sb)->sb_cc,SCTP_BUF_LEN((m))); \ 223 atomic_add_int(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \ 228 atomic_add_int(&(sb)->sb_ctl,SCTP_BUF_LEN((m))); \ 253 SCTP_SAVE_ATOMIC_DECREMENT(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \ 256 SCTP_SAVE_ATOMIC_DECREMENT(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \ 262 atomic_add_int(&(sb)->sb_cc, SCTP_BUF_LEN((m))); \ 265 atomic_add_int(&(stcb)->asoc.sb_cc, SCTP_BUF_LEN((m))); \ [all …]
|
D | sctputil.c | 269 sctp_clog.x.mb.size = (uint16_t)(SCTP_BUF_LEN(m)); in sctp_log_mb() 3000 tlen += SCTP_BUF_LEN(at); in sctp_calculate_len() 3171 if (off < SCTP_BUF_LEN(m)) in sctp_m_getptr() 3173 off -= SCTP_BUF_LEN(m); in sctp_m_getptr() 3180 if ((SCTP_BUF_LEN(m) - off) >= len) { in sctp_m_getptr() 3185 count = min(SCTP_BUF_LEN(m) - off, len); in sctp_m_getptr() 3234 SCTP_BUF_LEN(m_last) = 0; in sctp_add_pad_tombuf() 3238 dp = mtod(m_last, caddr_t) + SCTP_BUF_LEN(m_last); in sctp_add_pad_tombuf() 3239 SCTP_BUF_LEN(m_last) += padlen; in sctp_add_pad_tombuf() 3344 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); 1595 while ((m_tmp != NULL) && (m_offset >= (uint32_t) SCTP_BUF_LEN(m_tmp))) { 1596 m_offset -= SCTP_BUF_LEN(m_tmp); 1602 if (size > (uint32_t)(SCTP_BUF_LEN(m_tmp) - m_offset)) { 1603 memset(data, 0, SCTP_BUF_LEN(m_tmp) - m_offset); 1604 size -= SCTP_BUF_LEN(m_tmp) - m_offset; 1676 SCTP_BUF_LEN(op_err) = sizeof(struct sctp_error_auth_invalid_hmac); [all …]
|
D | sctp_output.c | 1999 paramh = (struct sctp_paramhdr *)(SCTP_BUF_AT(m, SCTP_BUF_LEN(m))); in sctp_add_addr_to_mbuf() 2028 SCTP_BUF_LEN(mret) += plen; in sctp_add_addr_to_mbuf() 2048 SCTP_BUF_LEN(mret) += plen; in sctp_add_addr_to_mbuf() 2182 SCTP_BUF_LEN(m_at) += *padding_len; in sctp_add_addresses_to_i_ia() 2260 SCTP_BUF_LEN(m_at) += *padding_len; in sctp_add_addresses_to_i_ia() 3587 tot_len = SCTP_BUF_LEN(control); 3690 tot_len = SCTP_BUF_LEN(control); 3869 tot_len = SCTP_BUF_LEN(control); 3985 SCTP_BUF_LEN(mret) = sizeof(struct sctp_state_cookie) + 3997 cookie_sz += SCTP_BUF_LEN(m_at); [all …]
|
D | sctp_asconf.c | 96 SCTP_BUF_LEN(m_reply) = aph->ph.param_length; in sctp_asconf_success_response() 149 SCTP_BUF_LEN(m_reply) = buf_len; in sctp_asconf_error_response() 701 SCTP_BUF_LEN(m_ack) = sizeof(struct sctp_asconf_ack_chunk); in sctp_handle_asconf() 800 ack_cp->ch.chunk_length += SCTP_BUF_LEN(m_result); in sctp_handle_asconf() 835 ack->len += SCTP_BUF_LEN(n); in sctp_handle_asconf() 2641 SCTP_BUF_LEN(m_asconf_chk) = sizeof(struct sctp_asconf_chunk); in sctp_compose_asconf() 2642 SCTP_BUF_LEN(m_asconf) = 0; in sctp_compose_asconf() 2662 if ((SCTP_BUF_LEN(m_asconf) + p_length > stcb->asoc.smallest_mtu) || in sctp_compose_asconf() 2663 (SCTP_BUF_LEN(m_asconf) + p_length > MCLBYTES)) { in sctp_compose_asconf() 2697 SCTP_BUF_LEN(m_asconf_chk) += SCTP_SIZE32(p_size); in sctp_compose_asconf() [all …]
|
D | sctp_indata.c | 232 SCTP_BUF_LEN(ret) = 0; in sctp_build_ctl_nchunk() 263 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_rcvinfo)); in sctp_build_ctl_nchunk() 289 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_nxtinfo)); in sctp_build_ctl_nchunk() 298 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_extrcvinfo)); in sctp_build_ctl_nchunk() 303 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); in sctp_build_ctl_nchunk() 689 if (SCTP_BUF_LEN(m) == 0) { in sctp_setup_tail_pointer() 705 atomic_add_int(&control->length, SCTP_BUF_LEN(m)); in sctp_setup_tail_pointer() 743 if (SCTP_BUF_LEN(m) == 0) { in sctp_add_to_tail_pointer() 766 *added += SCTP_BUF_LEN(m); in sctp_add_to_tail_pointer() 767 atomic_add_int(&control->length, SCTP_BUF_LEN(m)); in sctp_add_to_tail_pointer() [all …]
|
D | sctp_bsd_addr.c | 837 SCTP_BUF_LEN(m) = 0;
|
D | sctp_input.c | 498 SCTP_BUF_LEN(op_err) = len; in sctp_process_init_ack() 2763 SCTP_BUF_LEN(op_err) = sizeof(struct sctp_error_stale_cookie); 3527 if ((uint32_t)SCTP_BUF_LEN(tp1->data) < 4429 SCTP_BUF_LEN(chk->data) = SCTP_SIZE32(chk->send_size); 5699 SCTP_BUF_LEN(op_err) = sizeof(struct sctp_gen_error_cause); 6274 if (SCTP_BUF_LEN(m) < offset) { 6401 if (SCTP_BUF_LEN(m) < offset) {
|
D | sctp_os_userspace.h | 790 #define SCTP_BUF_LEN(m) (m->m_len) macro
|
D | sctp_usrreq.c | 8633 SCTP_BUF_LEN(nam) = sizeof(*sin); 8751 SCTP_BUF_LEN(nam) = sizeof(*sin);
|
D | sctp_pcb.c | 6509 if (SCTP_BUF_LEN(m) < offset) {
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/ |
D | user_recv_thread.c | 357 SCTP_BUF_LEN(recvmbuf[0]) = n; in recv_function_raw() 361 SCTP_BUF_LEN(recvmbuf[0]) = iovlen; in recv_function_raw() 367 SCTP_BUF_LEN(recvmbuf[i]->m_next) = min(ncounter, iovlen); in recv_function_raw() 549 SCTP_BUF_LEN(recvmbuf6[0]) = n; in recv_function_raw6() 553 SCTP_BUF_LEN(recvmbuf6[0]) = iovlen; in recv_function_raw6() 559 SCTP_BUF_LEN(recvmbuf6[i]->m_next) = min(ncounter, iovlen); in recv_function_raw6() 741 SCTP_BUF_LEN(udprecvmbuf[0]) = n; in recv_function_udp() 745 SCTP_BUF_LEN(udprecvmbuf[0]) = iovlen; in recv_function_udp() 751 SCTP_BUF_LEN(udprecvmbuf[i]->m_next) = min(ncounter, iovlen); in recv_function_udp() 947 SCTP_BUF_LEN(udprecvmbuf6[0]) = n; in recv_function_udp6() [all …]
|
D | user_socket.c | 2881 if (SCTP_BUF_LEN(m) < len) { 2892 if (SCTP_BUF_LEN(m) < len) { 2937 send_iovec[iovcnt].iov_len = SCTP_BUF_LEN(m); 2941 send_iovec[iovcnt].len = SCTP_BUF_LEN(m); 3027 if (SCTP_BUF_LEN(m) < len) { 3039 if (SCTP_BUF_LEN(m) < len) { 3083 send_iovec[iovcnt].iov_len = SCTP_BUF_LEN(m); 3087 send_iovec[iovcnt].len = SCTP_BUF_LEN(m); 3330 if (SCTP_BUF_LEN(m) < (int)(sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr))) {
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet6/ |
D | sctp6_usrreq.c | 1297 SCTP_BUF_LEN(nam) = sizeof(*sin6); 1433 SCTP_BUF_LEN(nam) = sizeof(*sin6); 1555 SCTP_BUF_LEN(nam) = sizeof(struct sockaddr_in6); 1619 SCTP_BUF_LEN(nam) = sizeof(struct sockaddr_in6);
|