Lines Matching defs:a_chk
7659 struct sctp_tmit_chunk *chk, *a_chk;
7669 a_chk = NULL;
7681 a_chk = chk;
7682 sctp_m_freem(a_chk->data);
7683 a_chk->data = NULL;
7684 sctp_free_remote_addr(a_chk->whoTo);
7685 a_chk->whoTo = NULL;
7689 if (a_chk == NULL) {
7690 a_chk = (struct sctp_tmit_chunk *)SCTP_ZONE_GET(sctppcbinfo.ipi_zone_chunk);
7691 if (a_chk == NULL) {
7701 a_chk->rec.chunk_id = SCTP_SELECTIVE_ACK;
7703 a_chk->asoc = asoc;
7704 a_chk->snd_count = 0;
7705 a_chk->send_size = 0; /* fill in later */
7706 a_chk->sent = SCTP_DATAGRAM_UNSENT;
7720 a_chk->whoTo = NULL;
7723 a_chk->whoTo = sctp_find_alternate_net(stcb, asoc->last_data_chunk_from);
7725 if (a_chk->whoTo == NULL) {
7727 a_chk->whoTo = asoc->last_data_chunk_from;
7740 a_chk->whoTo = asoc->last_data_chunk_from;
7742 if (a_chk->whoTo)
7743 a_chk->whoTo->ref_count++;
7746 MGETHDR(a_chk->data, M_DONTWAIT, MT_DATA);
7747 if ((a_chk->data == NULL) ||
7748 (a_chk->whoTo == NULL)) {
7750 if (a_chk->data) {
7752 sctp_m_freem(a_chk->data);
7753 a_chk->data = NULL;
7755 a_chk->whoTo->ref_count--;
7756 SCTP_ZONE_FREE(sctppcbinfo.ipi_zone_chunk, a_chk);
7867 MCLGET(a_chk->data, M_DONTWAIT);
7868 if ((a_chk->data->m_flags & M_EXT) != M_EXT) {
7872 sctp_m_freem(a_chk->data);
7873 a_chk->data = NULL;
7874 a_chk->whoTo->ref_count--;
7875 SCTP_ZONE_FREE(sctppcbinfo.ipi_zone_chunk, a_chk);
7890 a_chk->data->m_data += SCTP_MIN_OVERHEAD;
7891 sack = mtod(a_chk->data, struct sctp_sack_chunk *);
7900 a_chk->send_size = (sizeof(struct sctp_sack_chunk) +
7903 a_chk->data->m_pkthdr.len = a_chk->data->m_len = a_chk->send_size;
7904 sack->ch.chunk_length = htons(a_chk->send_size);
7950 TAILQ_INSERT_TAIL(&asoc->control_send_queue, a_chk, sctp_next);