Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_transport.c @ 8893:126a15530136 quic
QUIC: removed unused argument in ngx_quic_create_short_header().
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 07 Oct 2021 12:24:47 +0300 |
parents | 40f2f059145a |
children | de7b9af30fc6 |
comparison
equal
deleted
inserted
replaced
8892:d8ac4d3c24ac | 8893:126a15530136 |
---|---|
94 static ngx_int_t ngx_quic_parse_long_header_v1(ngx_quic_header_t *pkt); | 94 static ngx_int_t ngx_quic_parse_long_header_v1(ngx_quic_header_t *pkt); |
95 | 95 |
96 static size_t ngx_quic_create_long_header(ngx_quic_header_t *pkt, u_char *out, | 96 static size_t ngx_quic_create_long_header(ngx_quic_header_t *pkt, u_char *out, |
97 size_t pkt_len, u_char **pnp); | 97 size_t pkt_len, u_char **pnp); |
98 static size_t ngx_quic_create_short_header(ngx_quic_header_t *pkt, u_char *out, | 98 static size_t ngx_quic_create_short_header(ngx_quic_header_t *pkt, u_char *out, |
99 size_t pkt_len, u_char **pnp); | 99 u_char **pnp); |
100 | 100 |
101 static ngx_int_t ngx_quic_frame_allowed(ngx_quic_header_t *pkt, | 101 static ngx_int_t ngx_quic_frame_allowed(ngx_quic_header_t *pkt, |
102 ngx_uint_t frame_type); | 102 ngx_uint_t frame_type); |
103 static size_t ngx_quic_create_ping(u_char *p); | 103 static size_t ngx_quic_create_ping(u_char *p); |
104 static size_t ngx_quic_create_ack(u_char *p, ngx_quic_ack_frame_t *ack, | 104 static size_t ngx_quic_create_ack(u_char *p, ngx_quic_ack_frame_t *ack, |
616 size_t | 616 size_t |
617 ngx_quic_create_header(ngx_quic_header_t *pkt, u_char *out, size_t pkt_len, | 617 ngx_quic_create_header(ngx_quic_header_t *pkt, u_char *out, size_t pkt_len, |
618 u_char **pnp) | 618 u_char **pnp) |
619 { | 619 { |
620 return ngx_quic_short_pkt(pkt->flags) | 620 return ngx_quic_short_pkt(pkt->flags) |
621 ? ngx_quic_create_short_header(pkt, out, pkt_len, pnp) | 621 ? ngx_quic_create_short_header(pkt, out, pnp) |
622 : ngx_quic_create_long_header(pkt, out, pkt_len, pnp); | 622 : ngx_quic_create_long_header(pkt, out, pkt_len, pnp); |
623 } | 623 } |
624 | 624 |
625 | 625 |
626 static size_t | 626 static size_t |
674 } | 674 } |
675 | 675 |
676 | 676 |
677 static size_t | 677 static size_t |
678 ngx_quic_create_short_header(ngx_quic_header_t *pkt, u_char *out, | 678 ngx_quic_create_short_header(ngx_quic_header_t *pkt, u_char *out, |
679 size_t pkt_len, u_char **pnp) | 679 u_char **pnp) |
680 { | 680 { |
681 u_char *p, *start; | 681 u_char *p, *start; |
682 | 682 |
683 if (out == NULL) { | 683 if (out == NULL) { |
684 return 1 + pkt->dcid.len + pkt->num_len; | 684 return 1 + pkt->dcid.len + pkt->num_len; |