comparison src/event/quic/ngx_event_quic_transport.h @ 8545:4009f120cad4 quic

QUIC: eliminated stream type from ngx_quic_stream_frame_t. The information about the type is contained in off/len/fin bits. Also, where possible, only the first stream type (0x08) is used for simplicity.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 28 Jul 2021 13:21:47 +0300
parents 4715f3e669f1
children ad046179eb91
comparison
equal deleted inserted replaced
8544:d0ef43a53a51 8545:4009f120cad4
61 #define NGX_QUIC_FT_ACK_ECN 0x03 61 #define NGX_QUIC_FT_ACK_ECN 0x03
62 #define NGX_QUIC_FT_RESET_STREAM 0x04 62 #define NGX_QUIC_FT_RESET_STREAM 0x04
63 #define NGX_QUIC_FT_STOP_SENDING 0x05 63 #define NGX_QUIC_FT_STOP_SENDING 0x05
64 #define NGX_QUIC_FT_CRYPTO 0x06 64 #define NGX_QUIC_FT_CRYPTO 0x06
65 #define NGX_QUIC_FT_NEW_TOKEN 0x07 65 #define NGX_QUIC_FT_NEW_TOKEN 0x07
66 #define NGX_QUIC_FT_STREAM0 0x08 66 #define NGX_QUIC_FT_STREAM 0x08
67 #define NGX_QUIC_FT_STREAM1 0x09 67 #define NGX_QUIC_FT_STREAM1 0x09
68 #define NGX_QUIC_FT_STREAM2 0x0A 68 #define NGX_QUIC_FT_STREAM2 0x0A
69 #define NGX_QUIC_FT_STREAM3 0x0B 69 #define NGX_QUIC_FT_STREAM3 0x0B
70 #define NGX_QUIC_FT_STREAM4 0x0C 70 #define NGX_QUIC_FT_STREAM4 0x0C
71 #define NGX_QUIC_FT_STREAM5 0x0D 71 #define NGX_QUIC_FT_STREAM5 0x0D
188 typedef struct { 188 typedef struct {
189 /* initial fields same as in ngx_quic_ordered_frame_t */ 189 /* initial fields same as in ngx_quic_ordered_frame_t */
190 uint64_t offset; 190 uint64_t offset;
191 uint64_t length; 191 uint64_t length;
192 192
193 uint8_t type;
194 uint64_t stream_id; 193 uint64_t stream_id;
195 unsigned off:1; 194 unsigned off:1;
196 unsigned len:1; 195 unsigned len:1;
197 unsigned fin:1; 196 unsigned fin:1;
198 } ngx_quic_stream_frame_t; 197 } ngx_quic_stream_frame_t;