Lines Matching refs:chk_length
1695 struct mbuf **m, int offset, int chk_length, in sctp_process_a_data_chunk() argument
1745 if ((size_t)chk_length == clen) { in sctp_process_a_data_chunk()
2000 asoc->in_tsnlog[asoc->tsn_in_at].sz = chk_length; in sctp_process_a_data_chunk()
2042 the_len = (chk_length - sizeof(struct sctp_idata_chunk)); in sctp_process_a_data_chunk()
2044 the_len = (chk_length - sizeof(struct sctp_data_chunk)); in sctp_process_a_data_chunk()
2684 uint16_t chk_length; in sctp_process_data() local
2750 chk_length = ntohs(ch->chunk_length); in sctp_process_data()
2751 if (length - *offset < chk_length) { in sctp_process_data()
2787 if (chk_length < clen) { in sctp_process_data()
2797 chk_length); in sctp_process_data()
2806 if (SCTP_SIZE32(chk_length) == (length - *offset)) { in sctp_process_data()
2812 chk_length, net, high_tsn, &abort_flag, &break_flag, in sctp_process_data()
2875 if (chk_length < sizeof(struct sctp_chunkhdr)) { in sctp_process_data()
2883 SCTP_SNPRINTF(msg, sizeof(msg), "Chunk of length %u", chk_length); in sctp_process_data()
2899 cause->length = htons((uint16_t)(chk_length + sizeof(struct sctp_gen_error_cause))); in sctp_process_data()
2901 SCTP_BUF_NEXT(op_err) = SCTP_M_COPYM(m, *offset, chk_length, M_NOWAIT); in sctp_process_data()
2917 *offset += SCTP_SIZE32(chk_length); in sctp_process_data()