Lines Matching refs:mp

49 	mblk_t *mp;
55 if ((mp = allocb(sizeof (*tudi) + sizeof (void *) +
63 mp->b_datap->db_type = M_PROTO;
64 mp->b_flag |= MSGMARK;
65 mp->b_rptr += sizeof (void *); /* pointer worth of padding */
67 tudi = (struct T_unitdata_ind *)mp->b_rptr;
87 mp->b_wptr = (uchar_t *)(sin4 + 1);
96 mp->b_wptr = (uchar_t *)(sin6 + 1);
99 mp->b_cont = emp;
107 for (emp = mp->b_cont; emp; emp = emp->b_cont) {
116 mp->b_flag = (short)SCTP_NOTIFICATION;
118 rwnd = sctp->sctp_ulp_recv(sctp->sctp_ulpd, mp, msgdsize(mp), 0,
130 mblk_t *mp;
139 if ((mp = allocb(sizeof (*sacp) + ch_len, BPRI_MED)) == NULL) {
143 sacp = (struct sctp_assoc_change *)mp->b_rptr;
155 mp->b_wptr += sacp->sac_length;
156 sctp_notify(sctp, mp, sacp->sac_length);
167 mblk_t *mp;
171 if ((mp = allocb(sizeof (*sfp), BPRI_MED)) == NULL) {
178 sfp = (struct sctp_send_failed *)mp->b_rptr;
192 mp->b_wptr = (uchar_t *)(sfp + 1);
193 mp->b_cont = msghdr->b_cont;
197 sctp_notify(sctp, mp, sfp->ssf_length);
207 mblk_t *mp;
223 mp = nmp->b_next;
243 } while ((nmp = mp) != NULL);
254 mblk_t *mp;
275 mp = meta->b_cont;
277 while ((nmp = mp->b_next) != NULL) {
278 mp->b_next = nmp->b_next;
291 tail->b_cont = mp;
299 mblk_t *mp;
305 while ((mp = sctp->sctp_xmit_head) != NULL) {
306 sctp->sctp_xmit_head = mp->b_next;
307 mp->b_next = NULL;
310 sctp_sendfail_event(sctp, mp, 0, B_TRUE);
312 while ((mp = sctp->sctp_xmit_unsent) != NULL) {
313 sctp->sctp_xmit_unsent = mp->b_next;
314 mp->b_next = NULL;
315 sctp_sendfail_event(sctp, mp, 0, B_FALSE);
328 mblk_t *mp;
334 if ((mp = allocb(sizeof (*spc), BPRI_MED)) == NULL) {
338 spc = (struct sctp_paddr_change *)mp->b_rptr;
358 mp->b_wptr = (uchar_t *)(spc + 1);
359 sctp_notify(sctp, mp, spc->spc_length);
366 mblk_t *mp;
410 if ((mp = allocb(len, BPRI_MED)) == NULL) {
414 sre = (struct sctp_remote_error *)mp->b_rptr;
424 mp->b_wptr = mp->b_rptr + len;
425 sctp_notify(sctp, mp, len);
432 mblk_t *mp;
438 if ((mp = allocb(sizeof (*sse), BPRI_MED)) == NULL) {
442 sse = (struct sctp_shutdown_event *)mp->b_rptr;
448 mp->b_wptr = (uchar_t *)(sse + 1);
449 sctp_notify(sctp, mp, sse->sse_length);
456 mblk_t *mp;
461 if ((mp = allocb(sizeof (*sai), BPRI_MED)) == NULL) {
465 sai = (struct sctp_adaptation_event *)mp->b_rptr;
475 mp->b_wptr = (uchar_t *)(sai + 1);
476 sctp_notify(sctp, mp, sai->sai_length);
486 mblk_t *mp;
491 if ((mp = allocb(sizeof (*pdapi), BPRI_MED)) == NULL)
494 pdapi = (struct sctp_pdapi_event *)mp->b_rptr;
500 mp->b_wptr = (uchar_t *)(pdapi + 1);
501 sctp_notify(sctp, mp, pdapi->pdapi_length);