comparison src/event/ngx_event_quic_transport.c @ 8307:dc7ac778aafe quic

Introduced packet namespace in QUIC connection. The structure contains all data that is related to the namespace: packet number and output queue (next patch).
author Vladimir Homutov <vl@nginx.com>
date Wed, 01 Apr 2020 14:31:08 +0300
parents f85749b60e58
children e10b4c61420f
comparison
equal deleted inserted replaced
8306:058a5af7ddfc 8307:dc7ac778aafe
364 364
365 ngx_quic_build_int(&p, pkt_len + 1); // length (inc. pnl) 365 ngx_quic_build_int(&p, pkt_len + 1); // length (inc. pnl)
366 366
367 *pnp = p; 367 *pnp = p;
368 368
369 *p++ = (uint64_t) (*pkt->number); 369 *p++ = pkt->number; // XXX: uint64
370 370
371 return p - start; 371 return p - start;
372 } 372 }
373 373
374 374
384 384
385 p = ngx_cpymem(p, pkt->scid.data, pkt->scid.len); 385 p = ngx_cpymem(p, pkt->scid.data, pkt->scid.len);
386 386
387 *pnp = p; 387 *pnp = p;
388 388
389 *p++ = (*pkt->number); 389 *p++ = pkt->number; // XXX: uint64
390 390
391 return p - start; 391 return p - start;
392 } 392 }
393 393
394 394