Lines Matching refs:asoc
93 struct sctp_association *asoc = NULL; in sctp_datamsg_destroy() local
105 asoc = chunk->asoc; in sctp_datamsg_destroy()
109 error = asoc->outqueue.error; in sctp_datamsg_destroy()
111 sp = sctp_sk(asoc->base.sk); in sctp_datamsg_destroy()
124 ev = sctp_ulpevent_make_send_failed(asoc, chunk, sent, in sctp_datamsg_destroy()
127 sctp_ulpq_tail_event(&asoc->ulpq, ev); in sctp_datamsg_destroy()
165 struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc, in sctp_datamsg_from_user() argument
198 max_data = (asoc->pathmtu - in sctp_datamsg_from_user()
199 sctp_sk(asoc->base.sk)->pf->af->net_header_len - in sctp_datamsg_from_user()
202 max = asoc->frag_point; in sctp_datamsg_from_user()
207 if (sctp_auth_send_cid(SCTP_CID_DATA, asoc)) { in sctp_datamsg_from_user()
208 struct sctp_hmac *hmac_desc = sctp_auth_asoc_get_hmac(asoc); in sctp_datamsg_from_user()
228 if (timer_pending(&asoc->timers[SCTP_EVENT_TIMEOUT_SACK]) && in sctp_datamsg_from_user()
229 asoc->outqueue.out_qlen == 0 && in sctp_datamsg_from_user()
230 list_empty(&asoc->outqueue.retransmit) && in sctp_datamsg_from_user()
235 if (asoc->state < SCTP_STATE_COOKIE_ECHOED) in sctp_datamsg_from_user()
255 SCTP_INC_STATS_USER(sock_net(asoc->base.sk), SCTP_MIB_FRAGUSRMSGS); in sctp_datamsg_from_user()
276 chunk = sctp_make_datafrag_empty(asoc, sinfo, len, frag, 0); in sctp_datamsg_from_user()
312 chunk = sctp_make_datafrag_empty(asoc, sinfo, over, frag, 0); in sctp_datamsg_from_user()