# HG changeset patch # User Sergey Kandaurov # Date 1586010844 -10800 # Node ID 435fed8e24893b6fc31e58158a096fa43364ddb4 # Parent 0dc0552335bd860e724a77a86a38e6657d5ddba6 Logging of packet numbers in QUIC packet creation. diff --git a/src/event/ngx_event_quic_protection.c b/src/event/ngx_event_quic_protection.c --- a/src/event/ngx_event_quic_protection.c +++ b/src/event/ngx_event_quic_protection.c @@ -673,6 +673,10 @@ ngx_quic_create_long_packet(ngx_quic_hea return NGX_ERROR; } + ngx_log_debug3(NGX_LOG_DEBUG_EVENT, pkt->log, 0, + "ngx_quic_create_long_packet: number %L, encoded %d:0x%xD", + pkt->number, (int) pkt->num_len, pkt->trunc); + ngx_memcpy(nonce, pkt->secret->iv.data, pkt->secret->iv.len); ngx_quic_compute_nonce(nonce, sizeof(nonce), pkt->number); @@ -731,6 +735,10 @@ ngx_quic_create_short_packet(ngx_quic_he return NGX_ERROR; } + ngx_log_debug3(NGX_LOG_DEBUG_EVENT, pkt->log, 0, + "ngx_quic_create_short_packet: number %L, encoded %d:0x%xD", + pkt->number, (int) pkt->num_len, pkt->trunc); + ngx_memcpy(nonce, pkt->secret->iv.data, pkt->secret->iv.len); ngx_quic_compute_nonce(nonce, sizeof(nonce), pkt->number);