Lines Matching refs:a_chk
10551 struct sctp_tmit_chunk *chk, *a_chk; in sctp_send_sack() local
10575 a_chk = NULL; in sctp_send_sack()
10589 a_chk = chk; in sctp_send_sack()
10590 if (a_chk->data) { in sctp_send_sack()
10591 sctp_m_freem(a_chk->data); in sctp_send_sack()
10592 a_chk->data = NULL; in sctp_send_sack()
10594 if (a_chk->whoTo) { in sctp_send_sack()
10595 sctp_free_remote_addr(a_chk->whoTo); in sctp_send_sack()
10596 a_chk->whoTo = NULL; in sctp_send_sack()
10601 if (a_chk == NULL) { in sctp_send_sack()
10602 sctp_alloc_a_chunk(stcb, a_chk); in sctp_send_sack()
10603 if (a_chk == NULL) { in sctp_send_sack()
10616 a_chk->copy_by_ref = 0; in sctp_send_sack()
10617 a_chk->rec.chunk_id.id = type; in sctp_send_sack()
10618 a_chk->rec.chunk_id.can_take_data = 1; in sctp_send_sack()
10623 a_chk->flags = 0; in sctp_send_sack()
10624 a_chk->asoc = asoc; in sctp_send_sack()
10625 a_chk->snd_count = 0; in sctp_send_sack()
10626 a_chk->send_size = 0; /* fill in later */ in sctp_send_sack()
10627 a_chk->sent = SCTP_DATAGRAM_UNSENT; in sctp_send_sack()
10628 a_chk->whoTo = NULL; in sctp_send_sack()
10635 a_chk->whoTo = sctp_find_alternate_net(stcb, asoc->last_data_chunk_from, 0); in sctp_send_sack()
10636 if (a_chk->whoTo == NULL) { in sctp_send_sack()
10638 a_chk->whoTo = asoc->last_data_chunk_from; in sctp_send_sack()
10641 a_chk->whoTo = asoc->last_data_chunk_from; in sctp_send_sack()
10643 if (a_chk->whoTo) { in sctp_send_sack()
10644 atomic_add_int(&a_chk->whoTo->ref_count, 1); in sctp_send_sack()
10663 a_chk->data = sctp_get_mbuf_for_msg(space_req, 0, M_NOWAIT, 1, MT_DATA); in sctp_send_sack()
10664 if ((a_chk->data == NULL) || in sctp_send_sack()
10665 (a_chk->whoTo == NULL)) { in sctp_send_sack()
10667 if (a_chk->data) { in sctp_send_sack()
10669 sctp_m_freem(a_chk->data); in sctp_send_sack()
10670 a_chk->data = NULL; in sctp_send_sack()
10672 sctp_free_a_chunk(stcb, a_chk, so_locked); in sctp_send_sack()
10686 SCTP_BUF_RESV_UF(a_chk->data, SCTP_MIN_OVERHEAD); in sctp_send_sack()
10687 space = (unsigned int)M_TRAILINGSPACE(a_chk->data); in sctp_send_sack()
10688 if (space > (a_chk->whoTo->mtu - SCTP_MIN_OVERHEAD)) { in sctp_send_sack()
10689 space = (a_chk->whoTo->mtu - SCTP_MIN_OVERHEAD); in sctp_send_sack()
10691 limit = mtod(a_chk->data, caddr_t); in sctp_send_sack()
10717 sack = mtod(a_chk->data, struct sctp_sack_chunk *); in sctp_send_sack()
10727 nr_sack = mtod(a_chk->data, struct sctp_nr_sack_chunk *); in sctp_send_sack()
10900 a_chk->send_size = (uint16_t)(sizeof(struct sctp_sack_chunk) + in sctp_send_sack()
10903 SCTP_BUF_LEN(a_chk->data) = a_chk->send_size; in sctp_send_sack()
10910 sack->ch.chunk_length = htons(a_chk->send_size); in sctp_send_sack()
10912 a_chk->send_size = (uint16_t)(sizeof(struct sctp_nr_sack_chunk) + in sctp_send_sack()
10915 SCTP_BUF_LEN(a_chk->data) = a_chk->send_size; in sctp_send_sack()
10924 nr_sack->ch.chunk_length = htons(a_chk->send_size); in sctp_send_sack()
10926 TAILQ_INSERT_TAIL(&asoc->control_send_queue, a_chk, sctp_next); in sctp_send_sack()