Lines Matching refs:chk_length
1678 struct mbuf **m, int offset, int chk_length, in sctp_process_a_data_chunk() argument
1729 if ((size_t)chk_length == clen) { in sctp_process_a_data_chunk()
1971 asoc->in_tsnlog[asoc->tsn_in_at].sz = chk_length; in sctp_process_a_data_chunk()
2013 the_len = (chk_length - sizeof(struct sctp_idata_chunk)); in sctp_process_a_data_chunk()
2015 the_len = (chk_length - sizeof(struct sctp_data_chunk)); in sctp_process_a_data_chunk()
2649 uint16_t chk_length; in sctp_process_data() local
2713 chk_length = ntohs(ch->chunk_length); in sctp_process_data()
2714 if (length - *offset < chk_length) { in sctp_process_data()
2750 if (chk_length < clen) { in sctp_process_data()
2760 chk_length); in sctp_process_data()
2769 if (SCTP_SIZE32(chk_length) == (length - *offset)) { in sctp_process_data()
2775 chk_length, net, high_tsn, &abort_flag, &break_flag, in sctp_process_data()
2840 if (chk_length < sizeof(struct sctp_chunkhdr)) { in sctp_process_data()
2848 SCTP_SNPRINTF(msg, sizeof(msg), "Chunk of length %u", chk_length); in sctp_process_data()
2864 cause->length = htons((uint16_t)(chk_length + sizeof(struct sctp_gen_error_cause))); in sctp_process_data()
2866 SCTP_BUF_NEXT(op_err) = SCTP_M_COPYM(m, *offset, chk_length, M_NOWAIT); in sctp_process_data()
2882 *offset += SCTP_SIZE32(chk_length); in sctp_process_data()