Lines Matching refs:m_notify

3140 	struct mbuf *m_notify;  in sctp_notify_assoc_change()  local
3176 m_notify = sctp_get_mbuf_for_msg(notif_len, 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_assoc_change()
3177 if (m_notify == NULL) { in sctp_notify_assoc_change()
3180 m_notify = sctp_get_mbuf_for_msg(notif_len, 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_assoc_change()
3181 if (m_notify == NULL) { in sctp_notify_assoc_change()
3185 SCTP_BUF_NEXT(m_notify) = NULL; in sctp_notify_assoc_change()
3186 sac = mtod(m_notify, struct sctp_assoc_change *); in sctp_notify_assoc_change()
3226 SCTP_BUF_LEN(m_notify) = sac->sac_length; in sctp_notify_assoc_change()
3229 m_notify); in sctp_notify_assoc_change()
3231 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_assoc_change()
3234 control->tail_mbuf = m_notify; in sctp_notify_assoc_change()
3239 sctp_m_freem(m_notify); in sctp_notify_assoc_change()
3284 struct mbuf *m_notify; in sctp_notify_peer_addr_change() local
3297 m_notify = sctp_get_mbuf_for_msg(sizeof(struct sctp_paddr_change), 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_peer_addr_change()
3298 if (m_notify == NULL) in sctp_notify_peer_addr_change()
3300 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_peer_addr_change()
3301 spc = mtod(m_notify, struct sctp_paddr_change *); in sctp_notify_peer_addr_change()
3349 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_paddr_change); in sctp_notify_peer_addr_change()
3350 SCTP_BUF_NEXT(m_notify) = NULL; in sctp_notify_peer_addr_change()
3355 m_notify); in sctp_notify_peer_addr_change()
3358 sctp_m_freem(m_notify); in sctp_notify_peer_addr_change()
3361 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_peer_addr_change()
3364 control->tail_mbuf = m_notify; in sctp_notify_peer_addr_change()
3374 struct mbuf *m_notify; in sctp_notify_send_failed() local
3396 m_notify = sctp_get_mbuf_for_msg(notifhdr_len, 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_send_failed()
3397 if (m_notify == NULL) in sctp_notify_send_failed()
3400 SCTP_BUF_LEN(m_notify) = notifhdr_len; in sctp_notify_send_failed()
3426 ssfe = mtod(m_notify, struct sctp_send_failed_event *); in sctp_notify_send_failed()
3444 ssf = mtod(m_notify, struct sctp_send_failed *); in sctp_notify_send_failed()
3472 SCTP_BUF_NEXT(m_notify) = chk->data; in sctp_notify_send_failed()
3480 if (sctp_sbspace_failedmsgs(&stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_send_failed()
3481 sctp_m_freem(m_notify); in sctp_notify_send_failed()
3487 m_notify); in sctp_notify_send_failed()
3490 sctp_m_freem(m_notify); in sctp_notify_send_failed()
3493 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_send_failed()
3496 control->tail_mbuf = m_notify; in sctp_notify_send_failed()
3506 struct mbuf *m_notify; in sctp_notify_send_failed2() local
3527 m_notify = sctp_get_mbuf_for_msg(notifhdr_len, 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_send_failed2()
3528 if (m_notify == NULL) { in sctp_notify_send_failed2()
3532 SCTP_BUF_LEN(m_notify) = notifhdr_len; in sctp_notify_send_failed2()
3534 ssfe = mtod(m_notify, struct sctp_send_failed_event *); in sctp_notify_send_failed2()
3552 ssf = mtod(m_notify, struct sctp_send_failed *); in sctp_notify_send_failed2()
3571 SCTP_BUF_NEXT(m_notify) = sp->data; in sctp_notify_send_failed2()
3580 if (sctp_sbspace_failedmsgs(&stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_send_failed2()
3581 sctp_m_freem(m_notify); in sctp_notify_send_failed2()
3587 m_notify); in sctp_notify_send_failed2()
3590 sctp_m_freem(m_notify); in sctp_notify_send_failed2()
3593 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_send_failed2()
3596 control->tail_mbuf = m_notify; in sctp_notify_send_failed2()
3605 struct mbuf *m_notify; in sctp_notify_adaptation_layer() local
3618 m_notify = sctp_get_mbuf_for_msg(sizeof(struct sctp_adaption_event), 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_adaptation_layer()
3619 if (m_notify == NULL) in sctp_notify_adaptation_layer()
3622 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_adaptation_layer()
3623 sai = mtod(m_notify, struct sctp_adaptation_event *); in sctp_notify_adaptation_layer()
3631 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_adaptation_event); in sctp_notify_adaptation_layer()
3632 SCTP_BUF_NEXT(m_notify) = NULL; in sctp_notify_adaptation_layer()
3637 m_notify); in sctp_notify_adaptation_layer()
3640 sctp_m_freem(m_notify); in sctp_notify_adaptation_layer()
3643 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_adaptation_layer()
3646 control->tail_mbuf = m_notify; in sctp_notify_adaptation_layer()
3657 struct mbuf *m_notify; in sctp_notify_partial_delivery_indication() local
3672 m_notify = sctp_get_mbuf_for_msg(sizeof(struct sctp_pdapi_event), 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_partial_delivery_indication()
3673 if (m_notify == NULL) in sctp_notify_partial_delivery_indication()
3676 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_partial_delivery_indication()
3677 pdapi = mtod(m_notify, struct sctp_pdapi_event *); in sctp_notify_partial_delivery_indication()
3687 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_pdapi_event); in sctp_notify_partial_delivery_indication()
3688 SCTP_BUF_NEXT(m_notify) = NULL; in sctp_notify_partial_delivery_indication()
3691 m_notify); in sctp_notify_partial_delivery_indication()
3694 sctp_m_freem(m_notify); in sctp_notify_partial_delivery_indication()
3697 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_partial_delivery_indication()
3700 control->tail_mbuf = m_notify; in sctp_notify_partial_delivery_indication()
3703 sctp_sblog(sb, control->do_not_ref_stcb ? NULL : stcb, SCTP_LOG_SBALLOC, SCTP_BUF_LEN(m_notify)); in sctp_notify_partial_delivery_indication()
3705 sctp_sballoc(stcb, sb, m_notify); in sctp_notify_partial_delivery_indication()
3720 struct mbuf *m_notify; in sctp_notify_shutdown_event() local
3743 m_notify = sctp_get_mbuf_for_msg(sizeof(struct sctp_shutdown_event), 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_shutdown_event()
3744 if (m_notify == NULL) in sctp_notify_shutdown_event()
3747 sse = mtod(m_notify, struct sctp_shutdown_event *); in sctp_notify_shutdown_event()
3754 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_shutdown_event); in sctp_notify_shutdown_event()
3755 SCTP_BUF_NEXT(m_notify) = NULL; in sctp_notify_shutdown_event()
3760 m_notify); in sctp_notify_shutdown_event()
3763 sctp_m_freem(m_notify); in sctp_notify_shutdown_event()
3766 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_shutdown_event()
3769 control->tail_mbuf = m_notify; in sctp_notify_shutdown_event()
3778 struct mbuf *m_notify; in sctp_notify_sender_dry_event() local
3791 m_notify = sctp_get_mbuf_for_msg(sizeof(struct sctp_sender_dry_event), 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_sender_dry_event()
3792 if (m_notify == NULL) { in sctp_notify_sender_dry_event()
3796 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_sender_dry_event()
3797 event = mtod(m_notify, struct sctp_sender_dry_event *); in sctp_notify_sender_dry_event()
3804 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_sender_dry_event); in sctp_notify_sender_dry_event()
3805 SCTP_BUF_NEXT(m_notify) = NULL; in sctp_notify_sender_dry_event()
3810 m_notify); in sctp_notify_sender_dry_event()
3813 sctp_m_freem(m_notify); in sctp_notify_sender_dry_event()
3816 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_sender_dry_event()
3819 control->tail_mbuf = m_notify; in sctp_notify_sender_dry_event()
3828 struct mbuf *m_notify; in sctp_notify_stream_reset_add() local
3847 m_notify = sctp_get_mbuf_for_msg(sizeof(struct sctp_stream_change_event), 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_stream_reset_add()
3848 if (m_notify == NULL) in sctp_notify_stream_reset_add()
3851 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_stream_reset_add()
3852 stradd = mtod(m_notify, struct sctp_stream_change_event *); in sctp_notify_stream_reset_add()
3860 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_stream_change_event); in sctp_notify_stream_reset_add()
3861 SCTP_BUF_NEXT(m_notify) = NULL; in sctp_notify_stream_reset_add()
3862 if (sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_stream_reset_add()
3864 sctp_m_freem(m_notify); in sctp_notify_stream_reset_add()
3870 m_notify); in sctp_notify_stream_reset_add()
3873 sctp_m_freem(m_notify); in sctp_notify_stream_reset_add()
3876 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_stream_reset_add()
3879 control->tail_mbuf = m_notify; in sctp_notify_stream_reset_add()
3888 struct mbuf *m_notify; in sctp_notify_stream_reset_tsn() local
3901 m_notify = sctp_get_mbuf_for_msg(sizeof(struct sctp_assoc_reset_event), 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_stream_reset_tsn()
3902 if (m_notify == NULL) in sctp_notify_stream_reset_tsn()
3905 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_stream_reset_tsn()
3906 strasoc = mtod(m_notify, struct sctp_assoc_reset_event *); in sctp_notify_stream_reset_tsn()
3914 SCTP_BUF_LEN(m_notify) = sizeof(struct sctp_assoc_reset_event); in sctp_notify_stream_reset_tsn()
3915 SCTP_BUF_NEXT(m_notify) = NULL; in sctp_notify_stream_reset_tsn()
3916 if (sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_stream_reset_tsn()
3918 sctp_m_freem(m_notify); in sctp_notify_stream_reset_tsn()
3924 m_notify); in sctp_notify_stream_reset_tsn()
3927 sctp_m_freem(m_notify); in sctp_notify_stream_reset_tsn()
3930 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_stream_reset_tsn()
3933 control->tail_mbuf = m_notify; in sctp_notify_stream_reset_tsn()
3943 struct mbuf *m_notify; in sctp_notify_stream_reset() local
3957 m_notify = sctp_get_mbuf_for_msg(MCLBYTES, 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_stream_reset()
3958 if (m_notify == NULL) in sctp_notify_stream_reset()
3961 SCTP_BUF_LEN(m_notify) = 0; in sctp_notify_stream_reset()
3963 if (len > M_TRAILINGSPACE(m_notify)) { in sctp_notify_stream_reset()
3965 sctp_m_freem(m_notify); in sctp_notify_stream_reset()
3968 strreset = mtod(m_notify, struct sctp_stream_reset_event *); in sctp_notify_stream_reset()
3981 SCTP_BUF_LEN(m_notify) = len; in sctp_notify_stream_reset()
3982 SCTP_BUF_NEXT(m_notify) = NULL; in sctp_notify_stream_reset()
3983 if (sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv) < SCTP_BUF_LEN(m_notify)) { in sctp_notify_stream_reset()
3985 sctp_m_freem(m_notify); in sctp_notify_stream_reset()
3991 m_notify); in sctp_notify_stream_reset()
3994 sctp_m_freem(m_notify); in sctp_notify_stream_reset()
3997 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_stream_reset()
4000 control->tail_mbuf = m_notify; in sctp_notify_stream_reset()
4010 struct mbuf *m_notify; in sctp_notify_remote_error() local
4037 m_notify = sctp_get_mbuf_for_msg(notif_len, 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_remote_error()
4038 if (m_notify == NULL) { in sctp_notify_remote_error()
4041 m_notify = sctp_get_mbuf_for_msg(notif_len, 0, M_NOWAIT, 1, MT_DATA); in sctp_notify_remote_error()
4042 if (m_notify == NULL) { in sctp_notify_remote_error()
4046 SCTP_BUF_NEXT(m_notify) = NULL; in sctp_notify_remote_error()
4047 sre = mtod(m_notify, struct sctp_remote_error *); in sctp_notify_remote_error()
4058 SCTP_BUF_LEN(m_notify) = sre->sre_length; in sctp_notify_remote_error()
4061 m_notify); in sctp_notify_remote_error()
4063 control->length = SCTP_BUF_LEN(m_notify); in sctp_notify_remote_error()
4066 control->tail_mbuf = m_notify; in sctp_notify_remote_error()
4071 sctp_m_freem(m_notify); in sctp_notify_remote_error()