Lines Matching refs:sctp
46 sctp_notify(sctp_t *sctp, mblk_t *emp, size_t len) in sctp_notify() argument
53 conn_t *connp = sctp->sctp_connp; in sctp_notify()
73 fp = sctp->sctp_primary; in sctp_notify()
118 rwnd = sctp->sctp_ulp_recv(sctp->sctp_ulpd, mp, msgdsize(mp), 0, in sctp_notify()
120 if (rwnd > sctp->sctp_rwnd) { in sctp_notify()
121 sctp->sctp_rwnd = rwnd; in sctp_notify()
126 sctp_assoc_event(sctp_t *sctp, uint16_t state, uint16_t error, in sctp_assoc_event() argument
133 if (!sctp->sctp_recvassocevnt) { in sctp_assoc_event()
145 sacp->sac_flags = sctp->sctp_prsctp_aware ? SCTP_PRSCTP_CAPABLE : 0; in sctp_assoc_event()
149 sacp->sac_outbound_streams = sctp->sctp_num_ostr; in sctp_assoc_event()
150 sacp->sac_inbound_streams = sctp->sctp_num_istr; in sctp_assoc_event()
156 sctp_notify(sctp, mp, sacp->sac_length); in sctp_assoc_event()
164 sctp_sendfail(sctp_t *sctp, mblk_t *msghdr, uint16_t flags, int error) in sctp_sendfail() argument
197 sctp_notify(sctp, mp, sfp->ssf_length); in sctp_sendfail()
205 sctp_sendfail_sent(sctp_t *sctp, mblk_t *meta, int error) in sctp_sendfail_sent() argument
212 if (!sctp->sctp_recvsendfailevnt) { in sctp_sendfail_sent()
245 sctp_sendfail(sctp, meta, flags, error); in sctp_sendfail_sent()
252 sctp_sendfail_event(sctp_t *sctp, mblk_t *meta, int error, boolean_t chunkified) in sctp_sendfail_event() argument
261 if (!sctp->sctp_recvsendfailevnt) { in sctp_sendfail_event()
268 sctp_sendfail_sent(sctp, meta, error); in sctp_sendfail_event()
293 sctp_sendfail(sctp, meta, SCTP_DATA_UNSENT, error); in sctp_sendfail_event()
297 sctp_regift_xmitlist(sctp_t *sctp) in sctp_regift_xmitlist() argument
301 if (!sctp->sctp_recvsendfailevnt) { in sctp_regift_xmitlist()
305 while ((mp = sctp->sctp_xmit_head) != NULL) { in sctp_regift_xmitlist()
306 sctp->sctp_xmit_head = mp->b_next; in sctp_regift_xmitlist()
308 if (sctp->sctp_xmit_head != NULL) in sctp_regift_xmitlist()
309 sctp->sctp_xmit_head->b_prev = NULL; in sctp_regift_xmitlist()
310 sctp_sendfail_event(sctp, mp, 0, B_TRUE); in sctp_regift_xmitlist()
312 while ((mp = sctp->sctp_xmit_unsent) != NULL) { in sctp_regift_xmitlist()
313 sctp->sctp_xmit_unsent = mp->b_next; in sctp_regift_xmitlist()
315 sctp_sendfail_event(sctp, mp, 0, B_FALSE); in sctp_regift_xmitlist()
317 sctp->sctp_xmit_tail = sctp->sctp_xmit_unsent_tail = NULL; in sctp_regift_xmitlist()
318 sctp->sctp_unacked = sctp->sctp_unsent = 0; in sctp_regift_xmitlist()
322 sctp_intf_event(sctp_t *sctp, in6_addr_t addr, int state, int error) in sctp_intf_event() argument
330 if (!sctp->sctp_recvpathevnt) { in sctp_intf_event()
359 sctp_notify(sctp, mp, spc->spc_length); in sctp_intf_event()
363 sctp_error_event(sctp_t *sctp, sctp_chunk_hdr_t *ch, boolean_t is_asconf) in sctp_error_event() argument
373 if (!sctp->sctp_recvpeererr) { in sctp_error_event()
425 sctp_notify(sctp, mp, len); in sctp_error_event()
429 sctp_shutdown_event(sctp_t *sctp) in sctp_shutdown_event() argument
434 if (!sctp->sctp_recvshutdownevnt) { in sctp_shutdown_event()
449 sctp_notify(sctp, mp, sse->sse_length); in sctp_shutdown_event()
453 sctp_adaptation_event(sctp_t *sctp) in sctp_adaptation_event() argument
458 if (!sctp->sctp_recvalevnt || !sctp->sctp_recv_adaptation) { in sctp_adaptation_event()
473 sai->sai_adaptation_ind = sctp->sctp_rx_adaptation_code; in sctp_adaptation_event()
476 sctp_notify(sctp, mp, sai->sai_length); in sctp_adaptation_event()
478 sctp->sctp_recv_adaptation = 0; /* in case there's a restart later */ in sctp_adaptation_event()
483 sctp_partial_delivery_event(sctp_t *sctp) in sctp_partial_delivery_event() argument
488 if (!sctp->sctp_recvpdevnt) in sctp_partial_delivery_event()
501 sctp_notify(sctp, mp, pdapi->pdapi_length); in sctp_partial_delivery_event()