comparison src/event/quic/ngx_event_quic_migration.c @ 9144:bba136612fe4

QUIC: removed path->limited flag. Its value is the opposite of path->validated.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 06 Jul 2023 17:49:01 +0400
parents 9462c514a653
children f3412ec3b6d1
comparison
equal deleted inserted replaced
9143:48691bab4474 9144:bba136612fe4
166 166
167 ngx_quic_path_dbg(c, "is validated", path); 167 ngx_quic_path_dbg(c, "is validated", path);
168 168
169 path->validated = 1; 169 path->validated = 1;
170 path->validating = 0; 170 path->validating = 0;
171 path->limited = 0;
172 171
173 ngx_quic_set_path_timer(c); 172 ngx_quic_set_path_timer(c);
174 173
175 return NGX_OK; 174 return NGX_OK;
176 } 175 }
205 204
206 ngx_queue_insert_tail(&qc->paths, &path->queue); 205 ngx_queue_insert_tail(&qc->paths, &path->queue);
207 206
208 path->cid = cid; 207 path->cid = cid;
209 cid->used = 1; 208 cid->used = 1;
210
211 path->limited = 1;
212 209
213 path->seqnum = qc->path_seqnum++; 210 path->seqnum = qc->path_seqnum++;
214 211
215 path->sockaddr = &path->sa.sockaddr; 212 path->sockaddr = &path->sa.sockaddr;
216 path->socklen = socklen; 213 path->socklen = socklen;
663 660
664 /* found expired path */ 661 /* found expired path */
665 662
666 path->validated = 0; 663 path->validated = 0;
667 path->validating = 0; 664 path->validating = 0;
668 path->limited = 1;
669 665
670 666
671 /* RFC 9000, 9.3.2. On-Path Address Spoofing 667 /* RFC 9000, 9.3.2. On-Path Address Spoofing
672 * 668 *
673 * To protect the connection from failing due to such a spurious 669 * To protect the connection from failing due to such a spurious