comparison src/event/ngx_event_quic_transport.h @ 8076:3afaaaa930ab quic

QUIC: added support for multiple connection IDs. The peer may issue additional connection IDs up to the limit defined by transport parameter "active_connection_id_limit", using NEW_CONNECTION_ID frames, and retire such IDs using RETIRE_CONNECTION_ID frame.
author Vladimir Homutov <vl@nginx.com>
date Thu, 03 Sep 2020 13:11:27 +0300
parents fc89d02bdca2
children d0d3fc0697a0
comparison
equal deleted inserted replaced
8075:88676e7f4449 8076:3afaaaa930ab
118 #define NGX_QUIC_TP_RETRY_SCID 0x10 118 #define NGX_QUIC_TP_RETRY_SCID 0x10
119 119
120 #define NGX_QUIC_CID_LEN_MIN 8 120 #define NGX_QUIC_CID_LEN_MIN 8
121 #define NGX_QUIC_CID_LEN_MAX 20 121 #define NGX_QUIC_CID_LEN_MAX 20
122 122
123 #define NGX_QUIC_SRT_LEN 16
124
123 125
124 typedef struct { 126 typedef struct {
125 uint64_t largest; 127 uint64_t largest;
126 uint64_t delay; 128 uint64_t delay;
127 uint64_t range_count; 129 uint64_t range_count;
137 typedef struct { 139 typedef struct {
138 uint64_t seqnum; 140 uint64_t seqnum;
139 uint64_t retire; 141 uint64_t retire;
140 uint8_t len; 142 uint8_t len;
141 u_char cid[NGX_QUIC_CID_LEN_MAX]; 143 u_char cid[NGX_QUIC_CID_LEN_MAX];
142 u_char srt[16]; 144 u_char srt[NGX_QUIC_SRT_LEN];
143 } ngx_quic_new_conn_id_frame_t; 145 } ngx_quic_new_conn_id_frame_t;
144 146
145 147
146 typedef struct { 148 typedef struct {
147 uint64_t length; 149 uint64_t length;