QUIC: style.

Moved processing of RETIRE_CONNECTION_ID right after the NEW_CONNECTION_ID.
This commit is contained in:
Vladimir Homutov 2020-08-27 10:15:37 +03:00
parent fb54f2acd9
commit c36c54f500

View File

@ -751,6 +751,19 @@ ngx_quic_parse_frame(ngx_quic_header_t *pkt, u_char *start, u_char *end,
f->u.ncid.seqnum, f->u.ncid.retire, f->u.ncid.len); f->u.ncid.seqnum, f->u.ncid.retire, f->u.ncid.len);
break; break;
case NGX_QUIC_FT_RETIRE_CONNECTION_ID:
p = ngx_quic_parse_int(p, end, &f->u.retire_cid.sequence_number);
if (p == NULL) {
goto error;
}
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
"quic frame in: RETIRE_CONNECTION_ID"
" sequence_number:%uL",
f->u.retire_cid.sequence_number);
break;
case NGX_QUIC_FT_CONNECTION_CLOSE: case NGX_QUIC_FT_CONNECTION_CLOSE:
case NGX_QUIC_FT_CONNECTION_CLOSE_APP: case NGX_QUIC_FT_CONNECTION_CLOSE_APP:
@ -986,19 +999,6 @@ ngx_quic_parse_frame(ngx_quic_header_t *pkt, u_char *start, u_char *end,
f->u.stream_data_blocked.limit); f->u.stream_data_blocked.limit);
break; break;
case NGX_QUIC_FT_RETIRE_CONNECTION_ID:
p = ngx_quic_parse_int(p, end, &f->u.retire_cid.sequence_number);
if (p == NULL) {
goto error;
}
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
"quic frame in: RETIRE_CONNECTION_ID"
" sequence_number:%uL",
f->u.retire_cid.sequence_number);
break;
case NGX_QUIC_FT_PATH_CHALLENGE: case NGX_QUIC_FT_PATH_CHALLENGE:
p = ngx_quic_copy_bytes(p, end, 8, f->u.path_challenge.data); p = ngx_quic_copy_bytes(p, end, 8, f->u.path_challenge.data);