Lines Matching defs:asoc
77 struct sctp_association *asoc = tp->asoc;
91 if (asoc) {
92 sk = asoc->base.sk;
98 if (!asoc)
104 if (asoc->param_flags & SPP_PMTUD_ENABLE)
105 sctp_assoc_sync_pmtu(asoc);
107 if (asoc->param_flags & SPP_PMTUD_ENABLE)
108 sctp_assoc_sync_pmtu(asoc);
111 if (asoc->pmtu_pending) {
112 if (asoc->param_flags & SPP_PMTUD_ENABLE)
113 sctp_assoc_sync_pmtu(asoc);
114 asoc->pmtu_pending = 0;
121 struct sctp_chunk *chunk = sctp_get_ecne_prepend(asoc);
137 : asoc->pathmtu;
218 struct sctp_association *asoc = pkt->transport->asoc;
223 if (!asoc)
238 auth = sctp_make_auth(asoc, chunk->shkey->key_id);
264 struct sctp_association *asoc;
266 asoc = pkt->transport->asoc;
267 timer = &asoc->timers[SCTP_EVENT_TIMEOUT_SACK];
274 pkt->transport->asoc->peer.sack_generation)
277 asoc->a_rwnd = asoc->rwnd;
278 sack = sctp_make_sack(asoc);
285 SCTP_INC_STATS(asoc->base.net,
287 asoc->stats.octrlchunks++;
288 asoc->peer.sack_needed = 0;
290 sctp_association_put(asoc);
336 if (chunk->asoc)
337 chunk->asoc->stats.osacks++;
490 sctp_auth_calculate_hmac(tp->asoc, nskb, auth,
548 struct sctp_association *asoc = tp->asoc;
605 if (packet->has_data && sctp_state(asoc, ESTABLISHED) &&
606 asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE]) {
608 &asoc->timers[SCTP_EVENT_TIMEOUT_AUTOCLOSE];
610 asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE];
613 sctp_association_hold(asoc);
618 if (asoc) {
619 asoc->stats.opackets += pkt_count;
620 if (asoc->peer.last_sent_to != tp)
621 asoc->peer.last_sent_to = tp;
653 struct sctp_association *asoc = transport->asoc;
654 struct sctp_outq *q = &asoc->outqueue;
669 rwnd = asoc->peer.rwnd;
703 if ((sctp_sk(asoc->base.sk)->nodelay || inflight == 0) &&
704 !asoc->force_delay)
712 if (!sctp_state(asoc, ESTABLISHED))
719 packet->overhead - sctp_datachk_len(&chunk->asoc->stream) - 4)
737 struct sctp_association *asoc = transport->asoc;
738 u32 rwnd = asoc->peer.rwnd;
744 asoc->outqueue.outstanding_bytes += datasize;
752 asoc->peer.rwnd = rwnd;
754 asoc->stream.si->assign_number(chunk);
775 if (packet->transport->asoc)
776 pmtu = packet->transport->asoc->pathmtu;