Lines Matching refs:remaining_length
1065 uint32_t remaining_length, adjust; in sctp_handle_error() local
1072 remaining_length = ntohs(ch->chunk_length); in sctp_handle_error()
1073 if (remaining_length > limit) { in sctp_handle_error()
1074 remaining_length = limit; in sctp_handle_error()
1076 if (remaining_length >= sizeof(struct sctp_chunkhdr)) { in sctp_handle_error()
1077 remaining_length -= sizeof(struct sctp_chunkhdr); in sctp_handle_error()
1079 remaining_length = 0; in sctp_handle_error()
1082 while (remaining_length >= sizeof(struct sctp_error_cause)) { in sctp_handle_error()
1086 if ((cause_length > remaining_length) || (cause_length == 0)) { in sctp_handle_error()
1089 remaining_length, cause_length); in sctp_handle_error()
1232 if (remaining_length >= adjust) { in sctp_handle_error()
1233 remaining_length -= adjust; in sctp_handle_error()
1235 remaining_length = 0; in sctp_handle_error()
3954 uint16_t remaining_length, param_len, ptype; in sctp_handle_stream_reset() local
3967 remaining_length = ntohs(ch_req->chunk_length) - sizeof(struct sctp_chunkhdr); in sctp_handle_stream_reset()
4005 while (remaining_length >= sizeof(struct sctp_paramhdr)) { in sctp_handle_stream_reset()
4012 if ((param_len > remaining_length) || in sctp_handle_stream_reset()
4103 if (remaining_length >= SCTP_SIZE32(param_len)) { in sctp_handle_stream_reset()
4104 remaining_length -= SCTP_SIZE32(param_len); in sctp_handle_stream_reset()
4106 remaining_length = 0; in sctp_handle_stream_reset()