comparison src/event/quic/ngx_event_quic_transport.c @ 9015:a2fbae359828 quic

QUIC: fixed indentation.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 16 Feb 2022 15:45:47 +0300
parents 430755fcdb61
children a26897674420
comparison
equal deleted inserted replaced
9014:8d11e2171697 9015:a2fbae359828
586 return pkt_len - len; 586 return pkt_len - len;
587 } 587 }
588 588
589 /* flags, version, dcid and scid with lengths and zero-length token */ 589 /* flags, version, dcid and scid with lengths and zero-length token */
590 len = 5 + 2 + pkt->dcid.len + pkt->scid.len 590 len = 5 + 2 + pkt->dcid.len + pkt->scid.len
591 + (pkt->level == ssl_encryption_initial ? 1 : 0); 591 + (pkt->level == ssl_encryption_initial ? 1 : 0);
592 592
593 if (len > pkt_len) { 593 if (len > pkt_len) {
594 return 0; 594 return 0;
595 } 595 }
596 596
1050 p = ngx_quic_parse_int(p, end, &f->u.max_stream_data.id); 1050 p = ngx_quic_parse_int(p, end, &f->u.max_stream_data.id);
1051 if (p == NULL) { 1051 if (p == NULL) {
1052 goto error; 1052 goto error;
1053 } 1053 }
1054 1054
1055 p = ngx_quic_parse_int(p, end, &f->u.max_stream_data.limit); 1055 p = ngx_quic_parse_int(p, end, &f->u.max_stream_data.limit);
1056 if (p == NULL) { 1056 if (p == NULL) {
1057 goto error; 1057 goto error;
1058 } 1058 }
1059 1059
1060 break; 1060 break;
1553 { 1553 {
1554 size_t len; 1554 size_t len;
1555 u_char *start; 1555 u_char *start;
1556 ngx_uint_t type; 1556 ngx_uint_t type;
1557 1557
1558 type = ms->bidi ? NGX_QUIC_FT_MAX_STREAMS : NGX_QUIC_FT_MAX_STREAMS2; 1558 type = ms->bidi ? NGX_QUIC_FT_MAX_STREAMS : NGX_QUIC_FT_MAX_STREAMS2;
1559 1559
1560 if (p == NULL) { 1560 if (p == NULL) {
1561 len = ngx_quic_varint_len(type); 1561 len = ngx_quic_varint_len(type);
1562 len += ngx_quic_varint_len(ms->limit); 1562 len += ngx_quic_varint_len(ms->limit);
1563 return len; 1563 return len;