Lines Matching refs:chk_length

4322 	uint32_t chk_length, contiguous;  in sctp_process_control()  local
4518 chk_length = ntohs(ch->chunk_length); in sctp_process_control()
4520 ch->chunk_type, chk_length); in sctp_process_control()
4521 SCTP_LTRACE_CHK(inp, stcb, ch->chunk_type, chk_length); in sctp_process_control()
4522 if (chk_length < sizeof(*ch) || in sctp_process_control()
4523 (*offset + (int)chk_length) > length) { in sctp_process_control()
4541 contiguous = min(chk_length, sizeof(chunk_buf)); in sctp_process_control()
4582 (length - *offset > (int)SCTP_SIZE32(chk_length))) { in sctp_process_control()
4591 if (chk_length > SCTP_LARGEST_INIT_ACCEPTED) { in sctp_process_control()
4632 (length - *offset > (int)SCTP_SIZE32(chk_length))) { in sctp_process_control()
4678 if (chk_length < sizeof(struct sctp_sack_chunk)) { in sctp_process_control()
4686 if (chk_length < sizeof(struct sctp_nr_sack_chunk)) { in sctp_process_control()
4711 num_dup * sizeof(uint32_t) != chk_length) { in sctp_process_control()
4728 num_dup * sizeof(uint32_t) != chk_length) { in sctp_process_control()
4780 chk_length, *netp); in sctp_process_control()
4785 if ((stcb == NULL) || (chk_length != sizeof(struct sctp_heartbeat_chunk))) { in sctp_process_control()
4812 if ((stcb == NULL) || (chk_length != sizeof(struct sctp_shutdown_chunk))) { in sctp_process_control()
4827 if ((chk_length == sizeof(struct sctp_shutdown_ack_chunk)) && in sctp_process_control()
4967 if ((stcb == NULL) || chk_length != sizeof(struct sctp_cookie_ack_chunk)) { in sctp_process_control()
4993 if ((chk_length != sizeof(struct sctp_ecne_chunk)) && in sctp_process_control()
4994 (chk_length != sizeof(struct old_sctp_ecne_chunk))) { in sctp_process_control()
5008 if (chk_length != sizeof(struct sctp_cwr_chunk)) { in sctp_process_control()
5017 (length - *offset > (int)SCTP_SIZE32(chk_length))) { in sctp_process_control()
5021 if ((chk_length == sizeof(struct sctp_shutdown_complete_chunk)) && in sctp_process_control()
5048 if (chk_length < sizeof(struct sctp_asconf_ack_chunk)) { in sctp_process_control()
5077 if (chk_length < sizeof(struct sctp_forward_tsn_chunk)) { in sctp_process_control()
5120 if (chk_length < sizeof(struct sctp_stream_reset_tsn_req)) { in sctp_process_control()
5137 if (chk_length < sizeof(struct sctp_pktdrop_chunk)) { in sctp_process_control()
5143 min(chk_length, contiguous)); in sctp_process_control()
5152 auth_len = chk_length; in sctp_process_control()
5161 if ((chk_length < (sizeof(struct sctp_auth_chunk))) || in sctp_process_control()
5162 (chk_length > (sizeof(struct sctp_auth_chunk) + in sctp_process_control()
5197 len = min(SCTP_SIZE32(chk_length), (uint32_t)(length - *offset)); in sctp_process_control()
5225 *offset += SCTP_SIZE32(chk_length); in sctp_process_control()