Lines Matching full:asoc
77 struct sctp_association *asoc = tp->asoc; in sctp_packet_config() local
91 if (asoc) { in sctp_packet_config()
92 sk = asoc->base.sk; in sctp_packet_config()
98 if (!asoc) in sctp_packet_config()
104 if (asoc->param_flags & SPP_PMTUD_ENABLE) in sctp_packet_config()
105 sctp_assoc_sync_pmtu(asoc); in sctp_packet_config()
107 asoc->param_flags & SPP_PMTUD_ENABLE) { in sctp_packet_config()
109 sctp_assoc_sync_pmtu(asoc); in sctp_packet_config()
112 if (asoc->pmtu_pending) { in sctp_packet_config()
113 if (asoc->param_flags & SPP_PMTUD_ENABLE) in sctp_packet_config()
114 sctp_assoc_sync_pmtu(asoc); in sctp_packet_config()
115 asoc->pmtu_pending = 0; in sctp_packet_config()
122 struct sctp_chunk *chunk = sctp_get_ecne_prepend(asoc); in sctp_packet_config()
139 : asoc->pathmtu; in sctp_packet_config()
229 pad = sctp_make_pad(t->asoc, t->pl.probe_size - overhead); in sctp_packet_bundle_pad()
244 struct sctp_association *asoc = pkt->transport->asoc; in sctp_packet_bundle_auth() local
249 if (!asoc) in sctp_packet_bundle_auth()
264 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()
290 struct sctp_association *asoc; in sctp_packet_bundle_sack() local
292 asoc = pkt->transport->asoc; in sctp_packet_bundle_sack()
293 timer = &asoc->timers[SCTP_EVENT_TIMEOUT_SACK]; in sctp_packet_bundle_sack()
300 pkt->transport->asoc->peer.sack_generation) in sctp_packet_bundle_sack()
303 asoc->a_rwnd = asoc->rwnd; in sctp_packet_bundle_sack()
304 sack = sctp_make_sack(asoc); in sctp_packet_bundle_sack()
311 SCTP_INC_STATS(asoc->base.net, in sctp_packet_bundle_sack()
313 asoc->stats.octrlchunks++; in sctp_packet_bundle_sack()
314 asoc->peer.sack_needed = 0; in sctp_packet_bundle_sack()
316 sctp_association_put(asoc); in sctp_packet_bundle_sack()
362 if (chunk->asoc) in __sctp_packet_append_chunk()
363 chunk->asoc->stats.osacks++; in __sctp_packet_append_chunk()
520 sctp_auth_calculate_hmac(tp->asoc, nskb, auth, in sctp_packet_pack()
572 struct sctp_association *asoc = tp->asoc; in sctp_packet_transmit() local
629 if (packet->has_data && sctp_state(asoc, ESTABLISHED) && in sctp_packet_transmit()
630 asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE]) { in sctp_packet_transmit()
632 &asoc->timers[SCTP_EVENT_TIMEOUT_AUTOCLOSE]; in sctp_packet_transmit()
634 asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE]; in sctp_packet_transmit()
637 sctp_association_hold(asoc); in sctp_packet_transmit()
642 if (asoc) { in sctp_packet_transmit()
643 asoc->stats.opackets += pkt_count; in sctp_packet_transmit()
644 if (asoc->peer.last_sent_to != tp) in sctp_packet_transmit()
645 asoc->peer.last_sent_to = tp; in sctp_packet_transmit()
677 struct sctp_association *asoc = transport->asoc; in sctp_packet_can_append_data() local
678 struct sctp_outq *q = &asoc->outqueue; in sctp_packet_can_append_data()
693 rwnd = asoc->peer.rwnd; in sctp_packet_can_append_data()
727 if ((sctp_sk(asoc->base.sk)->nodelay || inflight == 0) && in sctp_packet_can_append_data()
728 !asoc->force_delay) in sctp_packet_can_append_data()
736 if (!sctp_state(asoc, ESTABLISHED)) in sctp_packet_can_append_data()
743 packet->overhead - sctp_datachk_len(&chunk->asoc->stream) - 4) in sctp_packet_can_append_data()
761 struct sctp_association *asoc = transport->asoc; in sctp_packet_append_data() local
762 u32 rwnd = asoc->peer.rwnd; in sctp_packet_append_data()
768 asoc->outqueue.outstanding_bytes += datasize; in sctp_packet_append_data()
776 asoc->peer.rwnd = rwnd; in sctp_packet_append_data()
778 asoc->stream.si->assign_number(chunk); in sctp_packet_append_data()
799 if (packet->transport->asoc) in sctp_packet_will_fit()
800 pmtu = packet->transport->asoc->pathmtu; in sctp_packet_will_fit()