From: Frédéric Lécaille Date: Mon, 13 Feb 2023 16:45:36 +0000 (+0100) Subject: MINOR: quic: Add a trace to identify connections which sent Initial packet. X-Git-Tag: v2.8-dev5~175 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc09f745e642f4acbb76396fd95aec446d3cbb2d;p=thirdparty%2Fhaproxy.git 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. --- 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); + } } }