Lines Matching refs:remaining_length
1071 uint32_t remaining_length, adjust; in sctp_handle_error() local
1078 remaining_length = ntohs(ch->chunk_length); in sctp_handle_error()
1079 if (remaining_length > limit) { in sctp_handle_error()
1080 remaining_length = limit; in sctp_handle_error()
1082 if (remaining_length >= sizeof(struct sctp_chunkhdr)) { in sctp_handle_error()
1083 remaining_length -= sizeof(struct sctp_chunkhdr); in sctp_handle_error()
1085 remaining_length = 0; in sctp_handle_error()
1088 while (remaining_length >= sizeof(struct sctp_error_cause)) { in sctp_handle_error()
1092 if ((cause_length > remaining_length) || (cause_length == 0)) { in sctp_handle_error()
1095 remaining_length, cause_length); in sctp_handle_error()
1217 if (remaining_length >= adjust) { in sctp_handle_error()
1218 remaining_length -= adjust; in sctp_handle_error()
1220 remaining_length = 0; in sctp_handle_error()
3960 uint16_t remaining_length, param_len, ptype; in sctp_handle_stream_reset() local
3973 remaining_length = ntohs(ch_req->chunk_length) - sizeof(struct sctp_chunkhdr); in sctp_handle_stream_reset()
4011 while (remaining_length >= sizeof(struct sctp_paramhdr)) { in sctp_handle_stream_reset()
4018 if ((param_len > remaining_length) || in sctp_handle_stream_reset()
4109 if (remaining_length >= SCTP_SIZE32(param_len)) { in sctp_handle_stream_reset()
4110 remaining_length -= SCTP_SIZE32(param_len); in sctp_handle_stream_reset()
4112 remaining_length = 0; in sctp_handle_stream_reset()