Lines Matching defs:sctp

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