Lines Matching refs:SCTP_BUF_LEN

253 	sctp_clog.x.mb.size = (uint16_t)(SCTP_BUF_LEN(m));  in sctp_log_mb()
2881 tlen += SCTP_BUF_LEN(at); in sctp_calculate_len()
3055 if (off < SCTP_BUF_LEN(m)) in sctp_m_getptr()
3057 off -= SCTP_BUF_LEN(m); in sctp_m_getptr()
3064 if ((SCTP_BUF_LEN(m) - off) >= len) { in sctp_m_getptr()
3069 count = min(SCTP_BUF_LEN(m) - off, len); in sctp_m_getptr()
3118 SCTP_BUF_LEN(m_last) = 0; in sctp_add_pad_tombuf()
3122 dp = mtod(m_last, caddr_t)+SCTP_BUF_LEN(m_last); in sctp_add_pad_tombuf()
3123 SCTP_BUF_LEN(m_last) += padlen; in sctp_add_pad_tombuf()
3225 SCTP_BUF_LEN(m_notify) = sac->sac_length; in sctp_notify_assoc_change()
3230 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_assoc_change()
3297 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_peer_addr_change()
3346 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_paddr_change); in sctp_notify_peer_addr_change()
3358 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_peer_addr_change()
3397 SCTP_BUF_LEN(m_notify) = notifhdr_len; in sctp_notify_send_failed()
3477 if (sctp_sbspace_failedmsgs(&stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_send_failed()
3490 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_send_failed()
3528 SCTP_BUF_LEN(m_notify) = notifhdr_len; in sctp_notify_send_failed2()
3576 if (sctp_sbspace_failedmsgs(&stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_send_failed2()
3589 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_send_failed2()
3617 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_adaptation_layer()
3626 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_adaptation_event); in sctp_notify_adaptation_layer()
3638 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_adaptation_layer()
3670 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_partial_delivery_indication()
3681 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_pdapi_event); in sctp_notify_partial_delivery_indication()
3691 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_partial_delivery_indication()
3697 sctp_sblog(sb, control->do_not_ref_stcb ? NULL : stcb, SCTP_LOG_SBALLOC, SCTP_BUF_LEN(m_notify)); in sctp_notify_partial_delivery_indication()
3748 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_shutdown_event); in sctp_notify_shutdown_event()
3760 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_shutdown_event()
3788 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_sender_dry_event()
3796 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_sender_dry_event); in sctp_notify_sender_dry_event()
3808 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_sender_dry_event()
3839 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_stream_reset_add()
3848 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_stream_change_event); in sctp_notify_stream_reset_add()
3850 if (sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_stream_reset_add()
3864 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_stream_reset_add()
3889 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_stream_reset_tsn()
3898 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_assoc_reset_event); in sctp_notify_stream_reset_tsn()
3900 if (sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_stream_reset_tsn()
3914 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_stream_reset_tsn()
3944 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_stream_reset()
3964 SCTP_BUF_LEN(m_notify) = len; in sctp_notify_stream_reset()
3966 if (sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_stream_reset()
3980 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_stream_reset()
4037 SCTP_BUF_LEN(m_notify) = sre->sre_length; in sctp_notify_remote_error()
4042 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_remote_error()
4783 …p_sblog(&old_so->so_rcv, control->do_not_ref_stcb ? NULL : stcb, SCTP_LOG_SBFREE, SCTP_BUF_LEN(m)); in sctp_pull_off_control_to_new_inp()
4804 …_sblog(&new_so->so_rcv, control->do_not_ref_stcb ? NULL : stcb, SCTP_LOG_SBALLOC, SCTP_BUF_LEN(m)); in sctp_pull_off_control_to_new_inp()
4874 if (SCTP_BUF_LEN(m) == 0) { in sctp_add_to_readq()
4891 sctp_sblog(sb, control->do_not_ref_stcb ? NULL : stcb, SCTP_LOG_SBALLOC, SCTP_BUF_LEN(m)); in sctp_add_to_readq()
4897 atomic_add_int(&control->length, SCTP_BUF_LEN(m)); in sctp_add_to_readq()
4948 SCTP_BUF_LEN(m) = len; in sctp_generate_cause()
4967 SCTP_BUF_LEN(m) = len; in sctp_generate_no_user_data_cause()
5672 cnt += SCTP_BUF_LEN(m_tmp); in sctp_sorecvmsg()
5983 my_len = SCTP_BUF_LEN(m); in sctp_sorecvmsg()
6009 if (cp_len == SCTP_BUF_LEN(m)) { in sctp_sorecvmsg()
6030 control->do_not_ref_stcb ? NULL : stcb, SCTP_LOG_SBFREE, SCTP_BUF_LEN(m)); in sctp_sorecvmsg()
6078 SCTP_BUF_LEN(m) -= (int)cp_len; in sctp_sorecvmsg()
6313 control->do_not_ref_stcb ? NULL : stcb, SCTP_LOG_SBFREE, SCTP_BUF_LEN(m)); in sctp_sorecvmsg()
6316 freed_so_far += (uint32_t)SCTP_BUF_LEN(m); in sctp_sorecvmsg()