From bc09f745e642f4acbb76396fd95aec446d3cbb2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 13 Feb 2023 17:45:36 +0100 Subject: [PATCH] MINOR: quic: Add a trace to identify connections which sent Initial packet. This should help in diagnosing issues revealed by the interop runner which counts the number of handshakes from the number of Initial packets sent by the server. Must be backported to 2.7. --- src/quic_conn.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/quic_conn.c b/src/quic_conn.c index cbead1231e..36afa583a1 100644 --- a/src/quic_conn.c +++ b/src/quic_conn.c @@ -632,6 +632,11 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace chunk_appendf(&trace_buf, " frm@%p", frm); chunk_frm_appendf(&trace_buf, frm); } + + if (pkt->type == QUIC_PACKET_TYPE_INITIAL) { + chunk_appendf(&trace_buf, " with scid"); + quic_cid_dump(&trace_buf, &qc->scid); + } } } -- 2.47.3