Fix a signed/unsigned warning.
MFC after: 1 week
This commit is contained in:
parent
7f75695a3e
commit
af03054c8a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324730
@ -2641,10 +2641,11 @@ sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length,
|
||||
struct sctp_association *asoc;
|
||||
int num_chunks = 0; /* number of control chunks processed */
|
||||
int stop_proc = 0;
|
||||
int chk_length, break_flag, last_chunk;
|
||||
int break_flag, last_chunk;
|
||||
int abort_flag = 0, was_a_gap;
|
||||
struct mbuf *m;
|
||||
uint32_t highest_tsn;
|
||||
uint16_t chk_length;
|
||||
|
||||
/* set the rwnd */
|
||||
sctp_set_rwnd(stcb, &stcb->asoc);
|
||||
@ -2739,7 +2740,7 @@ sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length,
|
||||
}
|
||||
if ((ch->chunk_type == SCTP_DATA) ||
|
||||
(ch->chunk_type == SCTP_IDATA)) {
|
||||
int clen;
|
||||
uint16_t clen;
|
||||
|
||||
if (ch->chunk_type == SCTP_DATA) {
|
||||
clen = sizeof(struct sctp_data_chunk);
|
||||
@ -2754,7 +2755,7 @@ sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length,
|
||||
struct mbuf *op_err;
|
||||
char msg[SCTP_DIAG_INFO_LEN];
|
||||
|
||||
snprintf(msg, sizeof(msg), "%s chunk of length %d",
|
||||
snprintf(msg, sizeof(msg), "%s chunk of length %u",
|
||||
ch->chunk_type == SCTP_DATA ? "DATA" : "I-DATA",
|
||||
chk_length);
|
||||
op_err = sctp_generate_cause(SCTP_CAUSE_PROTOCOL_VIOLATION, msg);
|
||||
@ -2844,7 +2845,7 @@ sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length,
|
||||
struct mbuf *op_err;
|
||||
char msg[SCTP_DIAG_INFO_LEN];
|
||||
|
||||
snprintf(msg, sizeof(msg), "Chunk of length %d",
|
||||
snprintf(msg, sizeof(msg), "Chunk of length %u",
|
||||
chk_length);
|
||||
op_err = sctp_generate_cause(SCTP_CAUSE_PROTOCOL_VIOLATION, msg);
|
||||
stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_INDATA + SCTP_LOC_20;
|
||||
|
Loading…
Reference in New Issue
Block a user