comparison src/event/ngx_event_quic_transport.c @ 8609:f32740ddd484 quic

QUIC: got rid of "pkt" abbreviation in logs.
author Vladimir Homutov <vl@nginx.com>
date Mon, 26 Oct 2020 23:47:49 +0300
parents 4a05f0f3dfce
children 867c189f875d
comparison
equal deleted inserted replaced
8608:4a05f0f3dfce 8609:f32740ddd484
324 "quic packet is too small to read version"); 324 "quic packet is too small to read version");
325 return NGX_ERROR; 325 return NGX_ERROR;
326 } 326 }
327 327
328 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0, 328 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
329 "quic pkt rx long flags:%xd version:%xD", 329 "quic packet rx long flags:%xd version:%xD",
330 pkt->flags, pkt->version); 330 pkt->flags, pkt->version);
331 331
332 if (!(pkt->flags & NGX_QUIC_PKT_FIXED_BIT)) { 332 if (!(pkt->flags & NGX_QUIC_PKT_FIXED_BIT)) {
333 ngx_log_error(NGX_LOG_INFO, pkt->log, 0, "quic fixed bit is not set"); 333 ngx_log_error(NGX_LOG_INFO, pkt->log, 0, "quic fixed bit is not set");
334 return NGX_ERROR; 334 return NGX_ERROR;
538 538
539 p = pkt->raw->pos; 539 p = pkt->raw->pos;
540 end = pkt->data + pkt->len; 540 end = pkt->data + pkt->len;
541 541
542 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0, 542 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
543 "quic pkt rx short flags:%xd", pkt->flags); 543 "quic packet rx short flags:%xd", pkt->flags);
544 544
545 if (!(pkt->flags & NGX_QUIC_PKT_FIXED_BIT)) { 545 if (!(pkt->flags & NGX_QUIC_PKT_FIXED_BIT)) {
546 ngx_log_error(NGX_LOG_INFO, pkt->log, 0, "quic fixed bit is not set"); 546 ngx_log_error(NGX_LOG_INFO, pkt->log, 0, "quic fixed bit is not set");
547 return NGX_ERROR; 547 return NGX_ERROR;
548 } 548 }
595 ngx_log_error(NGX_LOG_INFO, pkt->log, 0, "quic bad packet length"); 595 ngx_log_error(NGX_LOG_INFO, pkt->log, 0, "quic bad packet length");
596 return NGX_ERROR; 596 return NGX_ERROR;
597 } 597 }
598 598
599 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0, 599 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
600 "quic pkt rx initial len:%uL", varint); 600 "quic packet rx initial len:%uL", varint);
601 601
602 if (varint > (uint64_t) ((pkt->data + pkt->len) - p)) { 602 if (varint > (uint64_t) ((pkt->data + pkt->len) - p)) {
603 ngx_log_error(NGX_LOG_INFO, pkt->log, 0, 603 ngx_log_error(NGX_LOG_INFO, pkt->log, 0,
604 "quic truncated initial packet"); 604 "quic truncated initial packet");
605 return NGX_ERROR; 605 return NGX_ERROR;
634 ngx_log_error(NGX_LOG_INFO, pkt->log, 0, "quic bad packet length"); 634 ngx_log_error(NGX_LOG_INFO, pkt->log, 0, "quic bad packet length");
635 return NGX_ERROR; 635 return NGX_ERROR;
636 } 636 }
637 637
638 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0, 638 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
639 "quic pkt rx handshake len:%uL", plen); 639 "quic packet rx handshake len:%uL", plen);
640 640
641 if (plen > (uint64_t)((pkt->data + pkt->len) - p)) { 641 if (plen > (uint64_t)((pkt->data + pkt->len) - p)) {
642 ngx_log_error(NGX_LOG_INFO, pkt->log, 0, 642 ngx_log_error(NGX_LOG_INFO, pkt->log, 0,
643 "quic truncated handshake packet"); 643 "quic truncated handshake packet");
644 return NGX_ERROR; 644 return NGX_ERROR;