comparison src/event/ngx_event_quic.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 7a9ab6f7cea3
comparison
equal deleted inserted replaced
8608:4a05f0f3dfce 8609:f32740ddd484
1919 rc = ngx_quic_process_packet(c, conf, &pkt); 1919 rc = ngx_quic_process_packet(c, conf, &pkt);
1920 1920
1921 #if (NGX_DEBUG) 1921 #if (NGX_DEBUG)
1922 if (pkt.parsed) { 1922 if (pkt.parsed) {
1923 ngx_log_debug5(NGX_LOG_DEBUG_EVENT, c->log, 0, 1923 ngx_log_debug5(NGX_LOG_DEBUG_EVENT, c->log, 0,
1924 "quic pkt %s done decr:%d pn:%L perr:%ui rc:%i", 1924 "quic packet %s done decr:%d pn:%L perr:%ui rc:%i",
1925 ngx_quic_level_name(pkt.level), pkt.decrypted, 1925 ngx_quic_level_name(pkt.level), pkt.decrypted,
1926 pkt.pn, pkt.error, rc); 1926 pkt.pn, pkt.error, rc);
1927 } else { 1927 } else {
1928 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, 1928 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
1929 "quic pkt done parse failed rc:%i", rc); 1929 "quic packet done parse failed rc:%i", rc);
1930 } 1930 }
1931 #endif 1931 #endif
1932 1932
1933 if (rc == NGX_ERROR) { 1933 if (rc == NGX_ERROR) {
1934 return NGX_ERROR; 1934 return NGX_ERROR;
1997 c->log->action = "processing quic packet"; 1997 c->log->action = "processing quic packet";
1998 1998
1999 qc = c->quic; 1999 qc = c->quic;
2000 2000
2001 #if (NGX_DEBUG) 2001 #if (NGX_DEBUG)
2002 ngx_quic_hexdump(c->log, "quic pkt rx dcid", pkt->dcid.data, pkt->dcid.len); 2002 ngx_quic_hexdump(c->log, "quic packet rx dcid",
2003 pkt->dcid.data, pkt->dcid.len);
2003 2004
2004 if (pkt->level != ssl_encryption_application) { 2005 if (pkt->level != ssl_encryption_application) {
2005 ngx_quic_hexdump(c->log, "quic pkt rx scid", pkt->scid.data, 2006 ngx_quic_hexdump(c->log, "quic packet rx scid", pkt->scid.data,
2006 pkt->scid.len); 2007 pkt->scid.len);
2007 } 2008 }
2008 #endif 2009 #endif
2009 2010
2010 if (qc) { 2011 if (qc) {
4549 pkt.payload = out; 4550 pkt.payload = out;
4550 4551
4551 res.data = dst; 4552 res.data = dst;
4552 4553
4553 ngx_log_debug6(NGX_LOG_DEBUG_EVENT, c->log, 0, 4554 ngx_log_debug6(NGX_LOG_DEBUG_EVENT, c->log, 0,
4554 "quic pkt tx %s bytes:%ui" 4555 "quic packet tx %s bytes:%ui"
4555 " need_ack:%d number:%L encoded nl:%d trunc:0x%xD", 4556 " need_ack:%d number:%L encoded nl:%d trunc:0x%xD",
4556 ngx_quic_level_name(start->level), out.len, pkt.need_ack, 4557 ngx_quic_level_name(start->level), out.len, pkt.need_ack,
4557 pkt.number, pkt.num_len, pkt.trunc); 4558 pkt.number, pkt.num_len, pkt.trunc);
4558 4559
4559 if (ngx_quic_encrypt(&pkt, ssl_conn, &res) != NGX_OK) { 4560 if (ngx_quic_encrypt(&pkt, ssl_conn, &res) != NGX_OK) {